PHP Class Swagger\Analyser

显示文件 Open project: zircote/swagger-php Class Usage Examples

Public Properties

Property Type Description
$context Context Allows Annotation classes to know the context of the annotation that is being processed.
$docParser Doctrine\Common\Annotations\DocParser
$whitelist array List of namespaces that should be detected by the doctrine annotation parser.

Public Methods

Method Description
__construct ( $docParser = null )
fromComment ( string $comment, Context $context = null ) : array Use doctrine to parse the comment block and return the detected annotations.

Method Details

__construct() public method

public __construct ( $docParser = null )

fromComment() public method

Use doctrine to parse the comment block and return the detected annotations.
public fromComment ( string $comment, Context $context = null ) : array
$comment string a T_DOC_COMMENT.
$context Context
return array Annotations

Property Details

$context public_oe static_oe property

Allows Annotation classes to know the context of the annotation that is being processed.
public static Context,swagger $context
return Context

$docParser public_oe property

public DocParser,Doctrine\Common\Annotations $docParser
return Doctrine\Common\Annotations\DocParser

$whitelist public_oe static_oe property

List of namespaces that should be detected by the doctrine annotation parser.
public static array $whitelist
return array