| 1 | <?php |
||
| 14 | class Error_ extends Entity |
||
| 15 | { |
||
| 16 | use \Teto\Object\TypedProperty; |
||
| 17 | |||
| 18 | private static $property_types = [ |
||
|
|
|||
| 19 | 'error' => 'string', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | 2 | public function __construct(array $properties) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Returns error data as array |
||
| 29 | * |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | 2 | public function toArray() |
|
| 38 | } |
||
| 39 |
This check marks private properties in classes that are never used. Those properties can be removed.