| Conditions | 3 |
| Paths | 4 |
| Total Lines | 25 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct($params) |
||
| 31 | { |
||
| 32 | $this->requireParameter($params, 'id'); |
||
| 33 | |||
| 34 | parent::__construct($params); |
||
| 35 | |||
| 36 | $this->setId($params['id']); |
||
| 37 | $this->setUrl( |
||
| 38 | $this->deriveCourseUrl( |
||
| 39 | $this->getUrl(), |
||
| 40 | $this->getApi() |
||
| 41 | ) |
||
| 42 | ); |
||
| 43 | |||
| 44 | $params['pages'] = $this->forceBooleanParameter($params, 'pages'); |
||
| 45 | $params['announcements'] = $this->forceBooleanParameter($params, 'announcements'); |
||
| 46 | |||
| 47 | if ($params['pages']) { |
||
| 48 | $this->addDomain(new PagesSearch($params)); |
||
| 49 | } |
||
| 50 | |||
| 51 | if ($params['announcements']) { |
||
| 52 | $this->addDomain(new AnnouncementsSearch($params)); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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.