PHP Class LeanMapper\Reflection\AnnotationsParser

Author: Vojtěch Kohout
ファイルを表示 Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
__construct ( )
parseAnnotationValues ( string $annotation, string $docComment ) : array Parse value pieces of requested annotation from given doc comment
parseSimpleAnnotationValue ( string $annotation, string $docComment ) : string | null Parse value of requested simple annotation from given doc comment

Method Details

__construct() public method

public __construct ( )

parseAnnotationValues() public static method

Parse value pieces of requested annotation from given doc comment
public static parseAnnotationValues ( string $annotation, string $docComment ) : array
$annotation string
$docComment string
return array

parseSimpleAnnotationValue() public static method

Parse value of requested simple annotation from given doc comment
public static parseSimpleAnnotationValue ( string $annotation, string $docComment ) : string | null
$annotation string
$docComment string
return string | null