| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait BlendableProperties |
||
| 14 | { |
||
| 15 | /** @var null|Properties */ |
||
| 16 | protected $properties = null; |
||
| 17 | |||
| 18 | protected function loadProperties() |
||
| 19 | { |
||
| 20 | $this->properties = new Properties(); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return Properties |
||
| 25 | */ |
||
| 26 | public function getProperties() |
||
| 27 | { |
||
| 28 | return $this->properties; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function getPropertiesData() |
||
| 35 | { |
||
| 36 | return $this->properties->getData(); |
||
|
|
|||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param $name |
||
| 41 | * @param $value |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setProperty($name, $value) |
||
| 45 | { |
||
| 46 | $this->properties->setProperty($name, $value); |
||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | /** |
||
| 50 | * @param array $data |
||
| 51 | * |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setProperties(array $data) |
||
| 58 | } |
||
| 59 | |||
| 60 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.