parse() публичный Метод

public parse ( string $string, ReflectionClass $reflectionClass ) : array
$string string
$reflectionClass ReflectionClass
Результат array
Пример #1
0
 protected function parseAnnotationValue(PropertyMetadata $property, $propertyComment)
 {
     if (!$propertyComment) {
         return;
     }
     $matches = $this->modifierParser->matchModifiers($propertyComment);
     foreach ($matches as $macroContent) {
         try {
             $args = $this->modifierParser->parse($macroContent, $this->currentReflection);
         } catch (InvalidModifierDefinitionException $e) {
             throw new InvalidModifierDefinitionException("Invalid modifier definition for {$this->currentReflection->name}::\${$property->name} property.", 0, $e);
         }
         $this->processPropertyModifier($property, $args[0], $args[1]);
     }
 }