예제 #1
0
 /**
  * @param string $string
  *
  * @return static
  */
 public static function fromString($string)
 {
     $string = (new Str($string))->fromCanonical(self::NS_SEPARATOR);
     return parent::fromString((string) $string);
 }
예제 #2
0
 /**
  * @dataProvider noScalarsProvider
  * @expectedException \hollodotme\MilestonES\Exceptions\IdentifierArgumentIsNotScalar
  */
 public function testCannotBeContructedFromExpressions($expression)
 {
     Identifier::fromString($expression);
 }