| 1 | <?php |
||
| 5 | trait TTaggable |
||
| 6 | { |
||
| 7 | protected $tags = []; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @return array |
||
| 11 | */ |
||
| 12 | public function getTags() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param array $tags |
||
| 19 | * @return $this |
||
| 20 | */ |
||
| 21 | public function setTags(array $tags) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $tagName |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | public function hasTag($tagName) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array|string[] $tagNames |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function hasTags(array $tagNames) |
||
| 49 | } |
||
| 50 | |||
| 51 |