1 | <?php |
||
4 | class FakeUserParentParent |
||
5 | { |
||
6 | protected $id; |
||
7 | protected $name; |
||
8 | protected $tag; |
||
9 | /** @var FakeTag[] */ |
||
10 | protected $tags = []; |
||
11 | |||
12 | public function __construct($id, $name, FakeTag $tag) |
||
18 | |||
19 | public function setId($id) { $this->id = $id; return $this; } |
||
21 | |||
22 | public function setName($name) { $this->name = $name; return $this; } |
||
24 | |||
25 | public function getTag() { return $this->tag; } |
||
26 | |||
27 | public function addTag(FakeTag $tag) |
||
33 | |||
34 | public function removeTag(FakeTag $removed) |
||
42 | |||
43 | public function getTags() { return $this->tags; } |
||
44 | } |
||
45 |