| 1 | <?php |
||
| 14 | abstract class AbstractCanvasSearchDomain extends AbstractSearchDomain |
||
| 15 | { |
||
| 16 | const ID = 'id'; |
||
| 17 | const API = 'api'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * API access object |
||
| 21 | * @var CanvasPest |
||
| 22 | */ |
||
| 23 | protected $api; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Construct a CanvasSearchDomain from `$params`, requires `id` and `api` |
||
| 27 | * params, will extract `url` param from `api`, if necessary. |
||
| 28 | * |
||
| 29 | * @inheritdoc |
||
| 30 | * |
||
| 31 | * @param mixed[string] $params |
||
|
1 ignored issue
–
show
|
|||
| 32 | */ |
||
| 33 | public function __construct($params) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Update the `$api` field |
||
| 56 | * |
||
| 57 | * @param CanvasPest $api |
||
| 58 | * @throws Exception If `$api` is `NULL` |
||
| 59 | */ |
||
| 60 | protected function setApi(CanvasPest $api) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get the Canvas API field |
||
| 70 | * |
||
| 71 | * @return CanvasPest |
||
| 72 | */ |
||
| 73 | protected function getApi() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Update the ID of the Canvas object |
||
| 80 | * |
||
| 81 | * @used-by AbstractCanvasSearchDomain::__construct() |
||
| 82 | * @param string|integer $id Canvas ID or SIS ID formatted as `sis_*_id:*` |
||
| 83 | */ |
||
| 84 | protected function setId($id) |
||
| 93 | } |
||
| 94 |
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.