1 | <?php |
||
18 | class Notification extends Entity |
||
19 | { |
||
20 | use \Teto\Object\TypedProperty; |
||
21 | |||
22 | private static $property_types = [ |
||
|
|||
23 | 'id' => 'int', |
||
24 | 'type' => 'enum', |
||
25 | 'created_at' => \DateTimeImmutable::class, |
||
26 | 'account' => Account::class, |
||
27 | 'status' => Status::class, |
||
28 | ]; |
||
29 | |||
30 | private static $enum_values = [ |
||
31 | 'type' => ['mention', 'reblog', 'favourite', 'follow'], |
||
32 | ]; |
||
33 | |||
34 | 2 | public function __construct(array $properties) |
|
42 | |||
43 | /** |
||
44 | * Returns notification data as array |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 2 | public function toArray() |
|
58 | } |
||
59 |
This check marks private properties in classes that are never used. Those properties can be removed.