コード例 #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);
 }
コード例 #2
0
ファイル: Race.php プロジェクト: jaroslavtyc/drd-plus-races
 /**
  * @param string|StringInterface $value
  * @throws Exceptions\UnknownRaceCode
  * @throws \Doctrineum\Scalar\Exceptions\UnexpectedValueToEnum
  */
 protected function __construct($value)
 {
     parent::__construct($value);
     $this->checkRaceEnumValue($this->getValue());
 }
コード例 #3
0
 protected function getExternalRootNamespaces()
 {
     $externalRootReflection = new \ReflectionClass(ScalarEnum::getClass());
     return $externalRootReflection->getNamespaceName();
 }