| 1 | <?php |
||
| 7 | abstract class ABlocksByDayControl extends BaseControl implements IBlocksByDayControl |
||
| 8 | { |
||
| 9 | |||
| 10 | const TEMPLATE_NAME = ''; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var ProgramsControl |
||
| 14 | */ |
||
| 15 | private $programsControl; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var BlockModel |
||
| 19 | */ |
||
| 20 | private $blockModel; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $day |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function render($day) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return ProgramsControl |
||
| 39 | */ |
||
| 40 | protected function createComponentPrograms() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param IProgramsControl $control |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | protected function setProgramsControl(IProgramsControl $control): IBlocksByDayControl |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return BlockModel |
||
| 58 | */ |
||
| 59 | protected function getBlockModel(): BlockModel |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param BlockModel $model |
||
| 66 | * @return $this |
||
| 67 | */ |
||
| 68 | protected function setBlockModel(BlockModel $model): IBlocksByDayControl |
||
| 74 | |||
| 75 | } |
||
| 76 |
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: