| 1 | <?php |
||
| 23 | trait QueryTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Returns the status tag. |
||
| 27 | * |
||
| 28 | * @return Tag |
||
| 29 | */ |
||
| 30 | 1 | public function getStatusTag() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Returns the type tag. |
||
| 37 | * |
||
| 38 | * @return Tag |
||
| 39 | */ |
||
| 40 | public function getTypeTag() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Returns the resolution tag. |
||
| 47 | * |
||
| 48 | * @return Tag |
||
| 49 | */ |
||
| 50 | 1 | public function getResolutionTag() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Return tag by it group name. |
||
| 57 | * |
||
| 58 | * @param string $group |
||
| 59 | * |
||
| 60 | * @return Tag |
||
| 61 | */ |
||
| 62 | 1 | protected function getTagOfGroup($group) |
|
| 68 | } |
||
| 69 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: