@@ 370-378 (lines=9) @@ | ||
367 | * Get names of the defined enumerators as array |
|
368 | * @return string[] |
|
369 | */ |
|
370 | public function getNames() |
|
371 | { |
|
372 | $enumeration = $this->enumeration; |
|
373 | $names = array(); |
|
374 | foreach ($this->getOrdinals() as $ord) { |
|
375 | $names[] = $enumeration::byOrdinal($ord)->getName(); |
|
376 | } |
|
377 | return $names; |
|
378 | } |
|
379 | ||
380 | /** |
|
381 | * Get the defined enumerators as array |
@@ 352-360 (lines=9) @@ | ||
349 | * Get names of the defined enumerators as array |
|
350 | * @return string[] |
|
351 | */ |
|
352 | public function getNames() |
|
353 | { |
|
354 | $enumeration = $this->enumeration; |
|
355 | $names = array(); |
|
356 | foreach ($this->getOrdinals() as $ord) { |
|
357 | $names[] = $enumeration::byOrdinal($ord)->getName(); |
|
358 | } |
|
359 | return $names; |
|
360 | } |
|
361 | ||
362 | /** |
|
363 | * Get the defined enumerators as array |
@@ 515-523 (lines=9) @@ | ||
512 | * Get names of the defined enumerators as array |
|
513 | * @return string[] |
|
514 | */ |
|
515 | public function getNames() |
|
516 | { |
|
517 | $enumeration = $this->enumeration; |
|
518 | $names = array(); |
|
519 | foreach ($this->getOrdinals() as $ord) { |
|
520 | $names[] = $enumeration::byOrdinal($ord)->getName(); |
|
521 | } |
|
522 | return $names; |
|
523 | } |
|
524 | ||
525 | /** |
|
526 | * Get the defined enumerators as array |