| 1 | <?php |
||
| 35 | final class Assets |
||
| 36 | { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Array of mixins |
||
| 40 | * |
||
| 41 | * @var array |
||
| 42 | */ |
||
| 43 | protected $assets; |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * mixin |
||
| 48 | * |
||
| 49 | * @param string $name |
||
| 50 | * @return MixinInterface |
||
|
|
|||
| 51 | */ |
||
| 52 | 1 | public function mixin(string $name = 'untitled'): MixinInterface |
|
| 56 | |||
| 57 | /** |
||
| 58 | * mixin |
||
| 59 | * |
||
| 60 | * @param string $name |
||
| 61 | * @return ItemInterface |
||
| 62 | */ |
||
| 63 | 4 | public function item(string $name = 'untitled'): ItemInterface |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Get all assets |
||
| 70 | * |
||
| 71 | * @return array|null |
||
| 72 | */ |
||
| 73 | 7 | public function getAssets() |
|
| 77 | } |
||
| 78 |
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.