| 1 | <?php |
||
| 7 | abstract class AProgramOverviewControl extends BaseControl implements IProgramOverviewControl |
||
| 8 | { |
||
| 9 | |||
| 10 | const TEMPLATE_NAME = ''; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var BlocksByDayControl |
||
| 14 | */ |
||
| 15 | private $blocksByDay; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function render() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return BlocksByDayControl |
||
| 34 | */ |
||
| 35 | protected function createComponentBlocksByDay(): IBlocksByDayControl |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param BlocksByDayControl $control |
||
| 42 | * @return self |
||
| 43 | */ |
||
| 44 | protected function setBlocksBayControl(IBlocksByDayControl $control): self |
||
| 50 | |||
| 51 | } |
||
| 52 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: