1 | <?php |
||
19 | class Attachment extends Entity |
||
20 | { |
||
21 | use \Teto\Object\TypedProperty; |
||
22 | |||
23 | private static $property_types = [ |
||
|
|||
24 | 'id' => 'int', |
||
25 | 'type' => 'enum', |
||
26 | 'url' => 'string', |
||
27 | 'remote_url' => 'string', |
||
28 | 'preview_url' => 'string', |
||
29 | 'text_url' => 'string', |
||
30 | ]; |
||
31 | |||
32 | private static $enum_values = [ |
||
33 | 'type' => ['image', 'video', 'gifv'], |
||
34 | ]; |
||
35 | |||
36 | 2 | public function __construct(array $properties) |
|
40 | |||
41 | /** |
||
42 | * Returns attachment data as array |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 3 | public function toArray() |
|
57 | } |
||
58 |
This check marks private properties in classes that are never used. Those properties can be removed.