1 | <?php |
||
7 | class main implements \Serializable, \JsonSerializable { |
||
8 | |||
9 | public $color; |
||
10 | |||
11 | public function __construct($color) { |
||
14 | |||
15 | public function __clone() { |
||
20 | |||
21 | public function serialize() :string { |
||
24 | |||
25 | public function unserialize($serialized) { |
||
30 | |||
31 | public function jsonSerialize() :array { |
||
34 | |||
35 | |||
36 | protected function set($color, string $type = '') { |
||
43 | |||
44 | public function rgb() :array { |
||
47 | |||
48 | public function hsl(int $accuracy = 0) :array { |
||
55 | |||
56 | public function cmyk() :array { |
||
60 | |||
61 | public function hsb(int $accuracy = 0) :array { |
||
65 | |||
66 | public function hex() :string { |
||
69 | |||
70 | public function css() :string { |
||
73 | |||
74 | /** |
||
75 | * Get (and set) the alpha channel |
||
76 | * |
||
77 | * @param mixed $new_alpha If numeric, the alpha channel is set to this value |
||
78 | * @return float The current alpha value |
||
79 | */ |
||
80 | public function alpha($new_alpha) { |
||
83 | |||
84 | public function is_dark(int $check_score = 128) :bool { |
||
88 | |||
89 | public function red(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
92 | |||
93 | public function green(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
96 | |||
97 | public function blue(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
100 | |||
101 | public function hue(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
104 | |||
105 | public function saturation(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
108 | |||
109 | public function light(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
112 | |||
113 | public function blend(main $color2, float $amount = 50.0) { |
||
122 | |||
123 | public function rgb_scheme(string $scheme_name) :array { |
||
126 | |||
127 | public function hsl_scheme(string $scheme_name) :array { |
||
130 | |||
131 | public function hsb_scheme(string $scheme_name) :array { |
||
134 | |||
135 | public function hex_scheme(string $scheme_name) :array { |
||
138 | |||
139 | public function cmyk_scheme(string $scheme_name) :array { |
||
142 | |||
143 | protected static function _scheme(string $scheme_name, string $callback, array $hsl) { |
||
155 | |||
156 | public function rgb_rand(int $min_r = 0, int $max_r = 255, int $min_g = 0, int $max_g = 255, int $min_b = 0, int $max_b = 255) :color { |
||
159 | |||
160 | public function hsl_rand(int $min_h = 0, int $max_h = 255, int $min_s = 0, int $max_s = 255, int $min_l = 0, int $max_l = 255) :color { |
||
163 | |||
164 | } |
||
165 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.