| 1 | <?php |
||
| 8 | class VacancyTemplateBuilder |
||
| 9 | { |
||
| 10 | protected $statement = []; |
||
| 11 | |||
| 12 | public function getTemplate(Business $business, Service $service) |
||
| 20 | |||
| 21 | protected function addServiceStatement(Service $service) |
||
| 25 | |||
| 26 | protected function addDaysStatement() |
||
| 30 | |||
| 31 | protected function addTimeRangeStatement($startAt, $finishAt) |
||
| 35 | |||
| 36 | protected function addStatement($statement) |
||
| 40 | |||
| 41 | protected function build() |
||
| 45 | } |
||
| 46 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.