| 1 | <?php |
||
| 11 | class Project extends Resource |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $actions = [ |
||
| 18 | "jobs" => ["xml"], |
||
| 19 | "jobs/export" => ["xml"], |
||
| 20 | "resources" => ["xml"], |
||
| 21 | "executions" => ["xml"], |
||
| 22 | "executions/running" => ["xml"], |
||
| 23 | "export" => ["xml"], |
||
| 24 | "history" => ["xml"], |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param HttpClient $client |
||
| 29 | * @param string $name : Execution ID |
||
| 30 | */ |
||
| 31 | 15 | public function __construct(HttpClient $client, $name = null) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get project info |
||
| 39 | * @param string $alt xml|json |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 6 | public function find($alt = "xml") |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Find all projects |
||
| 50 | * @param string $alt |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | 3 | public function findAll($alt = "xml") |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Get project resource |
||
| 61 | * @param $name |
||
| 62 | * @param string $alt xml|json |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | 3 | public function resource($name, $alt = "xml") |
|
| 70 | } |
||
| 71 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..