| 1 | <?php |
||
| 17 | class Term extends CecilCollection implements ItemInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Term's name. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set term's name. |
||
| 28 | * |
||
| 29 | * @param string $value |
||
| 30 | * |
||
| 31 | * @return self |
||
| 32 | */ |
||
| 33 | public function setName(string $value): self |
||
| 39 | |||
| 40 | /** |
||
| 41 | * get term's name. |
||
| 42 | * |
||
| 43 | * @return string|null |
||
| 44 | */ |
||
| 45 | public function getName(): ?string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Sort items by date. |
||
| 52 | * |
||
| 53 | * @return self |
||
|
|
|||
| 54 | */ |
||
| 55 | public function sortByDate(): self |
||
| 71 | } |
||
| 72 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.