src/AbstractEnumSet.php 1 location
|
@@ 356-364 (lines=9) @@
|
353 |
|
* Get values of the defined enumerators as array |
354 |
|
* @return null[]|bool[]|int[]|float[]|string[] |
355 |
|
*/ |
356 |
|
public function getValues() |
357 |
|
{ |
358 |
|
$enumeration = $this->enumeration; |
359 |
|
$values = array(); |
360 |
|
foreach ($this->getOrdinals() as $ord) { |
361 |
|
$values[] = $enumeration::byOrdinal($ord)->getValue(); |
362 |
|
} |
363 |
|
return $values; |
364 |
|
} |
365 |
|
|
366 |
|
/** |
367 |
|
* Get names of the defined enumerators as array |
src/BinaryEnumSet.php 1 location
|
@@ 338-346 (lines=9) @@
|
335 |
|
* Get values of the defined enumerators as array |
336 |
|
* @return null[]|bool[]|int[]|float[]|string[] |
337 |
|
*/ |
338 |
|
public function getValues() |
339 |
|
{ |
340 |
|
$enumeration = $this->enumeration; |
341 |
|
$values = array(); |
342 |
|
foreach ($this->getOrdinals() as $ord) { |
343 |
|
$values[] = $enumeration::byOrdinal($ord)->getValue(); |
344 |
|
} |
345 |
|
return $values; |
346 |
|
} |
347 |
|
|
348 |
|
/** |
349 |
|
* Get names of the defined enumerators as array |
src/EnumSet.php 1 location
|
@@ 501-509 (lines=9) @@
|
498 |
|
* Get values of the defined enumerators as array |
499 |
|
* @return null[]|bool[]|int[]|float[]|string[] |
500 |
|
*/ |
501 |
|
public function getValues() |
502 |
|
{ |
503 |
|
$enumeration = $this->enumeration; |
504 |
|
$values = array(); |
505 |
|
foreach ($this->getOrdinals() as $ord) { |
506 |
|
$values[] = $enumeration::byOrdinal($ord)->getValue(); |
507 |
|
} |
508 |
|
return $values; |
509 |
|
} |
510 |
|
|
511 |
|
/** |
512 |
|
* Get names of the defined enumerators as array |