1 | <?php |
||
20 | class Toot |
||
21 | { |
||
22 | use \Teto\Object\PrivateGetter; |
||
23 | use \Teto\Object\ReadOnly; |
||
24 | |||
25 | const VISIBILITY_DIRECT = 'direct'; |
||
26 | const VISIBILITY_PRIVATE = 'private'; |
||
27 | const VISIBILITY_UNLISTED = 'unlisted'; |
||
28 | const VISIBILITY_PUBLIC = 'public'; |
||
29 | |||
30 | private static $VISIBILITIES = [ |
||
|
|||
31 | Toot::VISIBILITY_PUBLIC, |
||
32 | Toot::VISIBILITY_UNLISTED, |
||
33 | Toot::VISIBILITY_PRIVATE, |
||
34 | Toot::VISIBILITY_DIRECT, |
||
35 | ]; |
||
36 | |||
37 | /** @var string */ |
||
38 | private $toot_string; |
||
39 | /** @var int[] */ |
||
40 | private $media_ids = []; |
||
41 | /** @var int|null */ |
||
42 | private $in_reply_to_id; |
||
43 | /** @var string|null */ |
||
44 | private $visibility; |
||
45 | /** @var bool|null */ |
||
46 | private $sensitive; |
||
47 | /** @var string|null */ |
||
48 | private $spoiler_text; |
||
49 | |||
50 | /** |
||
51 | * @param string[] $scopes |
||
52 | */ |
||
53 | 2 | public function __construct($toot_string, array $options) |
|
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | public function __toString() |
||
94 | } |
||
95 |
This check marks private properties in classes that are never used. Those properties can be removed.