| 1 | <?php |
||
| 7 | class RegistrationGraphControl extends BaseControl |
||
| 8 | { |
||
| 9 | |||
| 10 | const TEMPLATE_NAME = 'RegistrationGraph'; |
||
| 11 | const GRAPH_WIDTH = 94; |
||
| 12 | const GRAPH_HEIGHT_INIT = 0; |
||
| 13 | const GRAPH_HEIGHT_STEP = 21.5; |
||
| 14 | const GRAPH_HEIGHT_MIN = 310; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ExportModel |
||
| 18 | */ |
||
| 19 | private $exportModel; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param ExportModel $model |
||
| 23 | */ |
||
| 24 | public function __construct(ExportModel $model) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function render() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return ExportModel |
||
| 49 | */ |
||
| 50 | protected function getExportModel() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param ExportModel $model |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | protected function setExportModel(ExportModel $model) |
||
| 65 | |||
| 66 | } |
||
| 67 |
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: