/** * @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); }
/** * @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(); }