Skip to content

Correct Job class method PHPDoc data types#47

Open
hhovakimyan wants to merge 2 commits intoNeverBounce:masterfrom
hhovakimyan:bugfix/correct-job-class-method-phpdoc-types
Open

Correct Job class method PHPDoc data types#47
hhovakimyan wants to merge 2 commits intoNeverBounce:masterfrom
hhovakimyan:bugfix/correct-job-class-method-phpdoc-types

Conversation

@hhovakimyan
Copy link

  1. Correct PHPDoc of Jobs class create method
    The PHPDoc data types of Jobs class "create" method arguments are
    fixed:
  • $input argument can be as "string" type when creating a job from
    file URL, also an "array" type when creating job from supplied data.
  • $runsample, $autoparse, $autostart, $allowManualReview, $callbackUrl,
    $callbackHeaders arguments' PHPDocs are fixed to mention they are
    nullable arguments.
  1. Correct PHPDoc $jobId arg in Job class methods
    As mentioned in API documentation the job id is an int32 type
    value, and so in PHP it is more correct to specify its data type as
    int and not string. So appropriate corrections are done in Job
    class methods receiving $jobId argument.

The PHPDoc data types of Jobs class "create" method arguments are
fixed:
- $input argument can be as "string" type when creating a job from
file URL, also an "array" type when creating job from supplied data.
- $runsample, $autoparse, $autostart, $allowManualReview, $callbackUrl,
$callbackHeaders arguments' PHPDocs are fixed to mention they are
nullable arguments.
As mentioned in API documentation the job id is an `int32` type
value, and so in PHP it is more correct to specify its data type as
`int` and not `string`. So appropriate corrections are done in Job
class methods receiving $jobId argument.
@hhovakimyan
Copy link
Author

@georgenov can you please take a look at these changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant