@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * {@inheritdoc} |
19 | 19 | */ |
20 | - public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
|
20 | + public function getSQLDeclaration (array $fieldDeclaration, AbstractPlatform $platform) |
|
21 | 21 | { |
22 | 22 | return $platform->getIntegerTypeDeclarationSQL($fieldDeclaration); |
23 | 23 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * {@inheritdoc} |
27 | 27 | */ |
28 | - public function getBindingType() |
|
28 | + public function getBindingType () |
|
29 | 29 | { |
30 | 30 | return \PDO::PARAM_INT; |
31 | 31 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * {@inheritdoc} |
35 | 35 | */ |
36 | - protected function cast($value) |
|
36 | + protected function cast ($value) |
|
37 | 37 | { |
38 | 38 | return (int) $value; |
39 | 39 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * {@inheritdoc} |
28 | 28 | */ |
29 | - public static function accepts($value): bool |
|
29 | + public static function accepts ($value): bool |
|
30 | 30 | { |
31 | 31 | if (!is_int($value)) { |
32 | 32 | throw new InvalidValueException($value, static::class); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param string $separator A delimiter used between each bit flag's readable string |
46 | 46 | */ |
47 | - public static function readableFor($value, string $separator = '; '): string |
|
47 | + public static function readableFor ($value, string $separator = '; '): string |
|
48 | 48 | { |
49 | 49 | if (!static::accepts($value)) { |
50 | 50 | throw new InvalidValueException($value, static::class); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @return string |
77 | 77 | */ |
78 | - protected static function readableForNone(): string |
|
78 | + protected static function readableForNone (): string |
|
79 | 79 | { |
80 | 80 | return 'None'; |
81 | 81 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return int |
89 | 89 | */ |
90 | - private static function getBitmask(): int |
|
90 | + private static function getBitmask (): int |
|
91 | 91 | { |
92 | 92 | $enumType = static::class; |
93 | 93 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @param string $separator A delimiter used between each bit flag's readable string |
116 | 116 | */ |
117 | - public function getReadable(string $separator = '; '): string |
|
117 | + public function getReadable (string $separator = '; '): string |
|
118 | 118 | { |
119 | 119 | return static::readableFor($this->getValue(), $separator); |
120 | 120 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @return array |
126 | 126 | */ |
127 | - public function getFlags(): array |
|
127 | + public function getFlags (): array |
|
128 | 128 | { |
129 | 129 | if ($this->flags === null) { |
130 | 130 | $this->flags = []; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @return bool True if the bit flag or bit flags are also set in the current instance; otherwise, false |
147 | 147 | */ |
148 | - public function hasFlag(int $bitFlag): bool |
|
148 | + public function hasFlag (int $bitFlag): bool |
|
149 | 149 | { |
150 | 150 | if ($bitFlag >= 1) { |
151 | 151 | return $bitFlag === ($bitFlag & $this->value); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @return static A new instance of the enumeration |
165 | 165 | */ |
166 | - public function addFlags(int $flags): self |
|
166 | + public function addFlags (int $flags): self |
|
167 | 167 | { |
168 | 168 | if (!static::accepts($flags)) { |
169 | 169 | throw new InvalidValueException($flags, static::class); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @return static A new instance of the enumeration |
183 | 183 | */ |
184 | - public function removeFlags(int $flags): self |
|
184 | + public function removeFlags (int $flags): self |
|
185 | 185 | { |
186 | 186 | if (!static::accepts($flags)) { |
187 | 187 | throw new InvalidValueException($flags, static::class); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @return array |
21 | 21 | */ |
22 | - public static function readables(): array; |
|
22 | + public static function readables (): array; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Gets the human representation for a given value. |
@@ -30,19 +30,19 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return string The human representation for a given value |
32 | 32 | */ |
33 | - public static function readableFor($value): string; |
|
33 | + public static function readableFor ($value): string; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Gets the human representation of the value. |
37 | 37 | * |
38 | 38 | * @return string |
39 | 39 | */ |
40 | - public function getReadable(): string; |
|
40 | + public function getReadable (): string; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Converts to the human representation of the current value. |
44 | 44 | * |
45 | 45 | * @return string |
46 | 46 | */ |
47 | - public function __toString(); |
|
47 | + public function __toString (); |
|
48 | 48 | } |
@@ -23,35 +23,35 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return EnumInterface A new instance of an enum |
25 | 25 | */ |
26 | - public static function create($value): EnumInterface; |
|
26 | + public static function create ($value): EnumInterface; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Returns any possible value for the enumeration. |
30 | 30 | * |
31 | 31 | * @return array |
32 | 32 | */ |
33 | - public static function values(): array; |
|
33 | + public static function values (): array; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param mixed $value |
37 | 37 | * |
38 | 38 | * @return bool True if the value is acceptable for this enumeration |
39 | 39 | */ |
40 | - public static function accepts($value): bool; |
|
40 | + public static function accepts ($value): bool; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Returns the list of all possible enum instances. |
44 | 44 | * |
45 | 45 | * @return EnumInterface[] |
46 | 46 | */ |
47 | - public static function instances(): array; |
|
47 | + public static function instances (): array; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Gets the raw value. |
51 | 51 | * |
52 | 52 | * @return mixed |
53 | 53 | */ |
54 | - public function getValue(); |
|
54 | + public function getValue (); |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Determines whether two enumerations instances should be considered the same. |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @return bool |
62 | 62 | */ |
63 | - public function equals(EnumInterface $enum): bool; |
|
63 | + public function equals (EnumInterface $enum): bool; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Determines if the enumeration instance value is equal to the given value. |
@@ -69,5 +69,5 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return bool |
71 | 71 | */ |
72 | - public function is($value): bool; |
|
72 | + public function is ($value): bool; |
|
73 | 73 | } |