| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HasDescription |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | * |
||
| 14 | * @ORM\Column(type="text", length=65535) |
||
| 15 | */ |
||
| 16 | private $description = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Set description |
||
| 20 | * |
||
| 21 | * @param string $description |
||
| 22 | */ |
||
| 23 | public function setDescription(string $description): void |
||
| 24 | { |
||
| 25 | $this->description = Utility::sanitizeRichText($description); |
||
|
|
|||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get description |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getDescription(): string |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
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.