1 | <?php |
||
13 | class AnnotationWithValue implements AnnotationInterface |
||
14 | { |
||
15 | /** @var string[] Collection of class collection */ |
||
16 | protected $collection = []; |
||
17 | |||
18 | /** |
||
19 | * Scope constructor. |
||
20 | * |
||
21 | * @param array $valueOrValues Class collection |
||
22 | * |
||
23 | * @throws \InvalidArgumentException Thrown when neither string nor string[] is passed |
||
24 | */ |
||
25 | 22 | public function __construct(array $valueOrValues) |
|
37 | |||
38 | /** |
||
39 | * Check if we received an array with keys. |
||
40 | * |
||
41 | * @param array $valueOrValues |
||
42 | * |
||
43 | * @return bool True if value key exists |
||
44 | */ |
||
45 | 22 | protected function checkValuePresence(array $valueOrValues) |
|
49 | } |
||
50 |