1 | <?php |
||
7 | class main { |
||
8 | |||
9 | public $data; |
||
10 | |||
11 | public function __construct($color) { |
||
14 | |||
15 | public function set($color) { |
||
22 | |||
23 | public function is_dark(int $check_score = 128) :bool { |
||
27 | |||
28 | public function mod_r(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
31 | |||
32 | public function mod_g(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
35 | |||
36 | public function mod_b(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
39 | |||
40 | public function mod_h(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
43 | |||
44 | public function mod_s(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
47 | |||
48 | public function mod_l(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = FALSE) { |
||
51 | |||
52 | public function get_scheme(string $scheme_name = '') { |
||
62 | |||
63 | public function get_hex_scheme(string $scheme_name = '') { |
||
66 | } |
||
67 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.