Ejemplo n.º 1
0
 /**
  * @param string $codeValue
  * @throws \Doctrineum\Scalar\Exceptions\UnexpectedValueToEnum
  * @throws \DrdPlus\Codes\Partials\Exceptions\UnknownValueForCode
  */
 protected function __construct($codeValue)
 {
     parent::__construct($codeValue);
     $this->guardCodeExistence($this->enumValue);
 }
Ejemplo n.º 2
0
 /**
  * @param string|StringInterface $value
  * @throws Exceptions\UnknownRaceCode
  * @throws \Doctrineum\Scalar\Exceptions\UnexpectedValueToEnum
  */
 protected function __construct($value)
 {
     parent::__construct($value);
     $this->checkRaceEnumValue($this->getValue());
 }
 protected function getExternalRootNamespaces()
 {
     $externalRootReflection = new \ReflectionClass(ScalarEnum::getClass());
     return $externalRootReflection->getNamespaceName();
 }