| 1 | <?php |
||
| 14 | trait RequireCanvasPestParameter |
||
| 15 | { |
||
| 16 | use RequireParameter; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * API access object |
||
| 20 | * @var CanvasPest |
||
| 21 | */ |
||
| 22 | protected $api; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Require and store a CanvasPest parameter |
||
| 26 | * |
||
| 27 | * @param mixed[string] $params |
||
|
1 ignored issue
–
show
|
|||
| 28 | * @param string $key (Optional, defaults to `'api'`) |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | protected function requireCanvasPestParameter($params, $key = 'api') |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Update the `$api` field |
||
| 39 | * |
||
| 40 | * @param CanvasPest $api |
||
| 41 | */ |
||
| 42 | protected function setApi(CanvasPest $api) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the Canvas API field |
||
| 50 | * |
||
| 51 | * @return CanvasPest |
||
| 52 | */ |
||
| 53 | protected function getApi() |
||
| 57 | } |
||
| 58 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.