1 | <?php |
||
18 | class TargetCollection implements TargetInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var Target[] |
||
22 | */ |
||
23 | protected $targets; |
||
24 | |||
25 | protected $ids; |
||
26 | |||
27 | protected $types; |
||
28 | |||
29 | public function __construct(array $targets) |
||
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | public function getId() |
||
49 | |||
50 | public function getIds() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getType() |
||
62 | |||
63 | public function getTypes() |
||
67 | |||
68 | public function getTarget() |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getUniqId() |
||
80 | |||
81 | /** |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function equals(TargetInterface $other) |
||
90 | |||
91 | public static function takeIds(TargetInterface $other) |
||
95 | |||
96 | public static function takeTypes(TargetInterface $other) |
||
100 | |||
101 | public function jsonSerialize() |
||
105 | } |
||
106 |