public function validatePropertyAnnotation($annotation)
    {
        if (!in_array($annotation, $this->propertyAnnotations)) {
            throw $this->getException(
                'The property annotation isn\'t valid ("%s" given, expecting one of following: %s)',
                [$annotation, implode(', ', $this->propertyAnnotations)]
            );
        }

        return $annotation;
    }
public function validatePropertyAnnotation($annotation)
    {
        if (!in_array($annotation, $this->propertyAnnotations)) {
            throw $this->getException(
                'The property annotation isn\'t valid ("%s" given, expecting one of following: %s)',
                [$annotation, implode(', ', $this->propertyAnnotations)]
            );
        }

        return $annotation;
    }
public function validatePropertyAnnotation ( $ annotation ) { if ( ! in_array ( $ annotation , $ this -> propertyAnnotations ) ) { throw $ this -> getException ( 'The property annotation isn\'t valid ("%s" given, expecting one of following: %s)' , [ $ annotation , implode ( ', ' , $ this -> propertyAnnotations ) ] ) ; } return $ annotation ; }
Validates property annotation

@param string $annotation

@return string
@throws \InvalidArgumentException
Validates property annotation