| 1 | <?php |
||
| 14 | abstract class AbstractElement implements Element |
||
| 15 | { |
||
| 16 | use Properties; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $view; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var MenuRender |
||
| 25 | */ |
||
| 26 | protected $render; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
| 31 | 1 | public function getView() |
|
| 32 | { |
||
| 33 | 1 | return $this->view; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | 1 | public function setView($view) |
|
| 40 | { |
||
| 41 | 1 | if ($this->render->exists($view)) { |
|
| 42 | 1 | $this->view = $view; |
|
| 43 | 1 | } |
|
| 44 | 1 | } |
|
| 45 | |||
| 46 | 3 | protected function propertiesForSerialization() |
|
| 47 | { |
||
| 48 | return [ |
||
| 49 | 3 | 'view' => $this->view, |
|
| 50 | 3 | ]; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | 3 | public function toArray() |
|
| 57 | { |
||
| 58 | return [ |
||
| 59 | 3 | 'view' => $this->view, |
|
| 60 | 3 | ]; |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @inheritDoc |
||
| 65 | */ |
||
| 66 | 3 | public function serialize() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @inheritDoc |
||
| 73 | */ |
||
| 74 | 3 | public function unserialize($serialized) |
|
| 95 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.