Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
62 | public function __construct($params) |
||
63 | { |
||
64 | $this->requireParameter($params, 'url'); |
||
65 | $this->requireParameter($params, 'title'); |
||
66 | $this->requireParameter($params, 'relevance', Relevance::class); |
||
67 | $this->requireParameter($params, 'source', SearchSource::class); |
||
68 | |||
69 | $this->defaultParameter($params, 'description', '[no description available]'); |
||
70 | |||
71 | $this->setUrl($params['url']); |
||
1 ignored issue
–
show
|
|||
72 | $this->setTitle($params['title']); |
||
1 ignored issue
–
show
|
|||
73 | $this->setRelevance($params['relevance']); |
||
1 ignored issue
–
show
|
|||
74 | $this->setSource($params['source']); |
||
1 ignored issue
–
show
|
|||
75 | $this->setDescription($params['description']); |
||
1 ignored issue
–
show
|
|||
76 | } |
||
77 | |||
97 |
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.