PHP 클래스 Swagger\StaticAnalyser

파일 보기 프로젝트 열기: zircote/swagger-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $filename = null )
fromCode ( string $code, Context $context ) : Analysis Extract and process all doc-comments from the contents.
fromFile ( string $filename ) : Analysis Extract and process all doc-comments from a file.

보호된 메소드들

메소드 설명
fromTokens ( array $tokens, Context $parseContext ) : Analysis Shared implementation for parseFile() & parseContents().

비공개 메소드들

메소드 설명
analyseComment ( Analysis $analysis, Analyser $analyser, string $comment, Context $context )
nextToken ( array &$tokens, Context $context ) : string | array The next non-whitespace, non-comment token.
parseNamespace ( &$tokens, &$token, $parseContext )
parseUseStatement ( &$tokens, &$token, $parseContext )

메소드 상세

__construct() 공개 메소드

public __construct ( string $filename = null )
$filename string

fromCode() 공개 메소드

Extract and process all doc-comments from the contents.
public fromCode ( string $code, Context $context ) : Analysis
$code string PHP code. (including
$context Context The original location of the contents.
리턴 Analysis

fromFile() 공개 메소드

Extract and process all doc-comments from a file.
public fromFile ( string $filename ) : Analysis
$filename string Path to a php file.
리턴 Analysis

fromTokens() 보호된 메소드

Shared implementation for parseFile() & parseContents().
protected fromTokens ( array $tokens, Context $parseContext ) : Analysis
$tokens array The result of a token_get_all()
$parseContext Context
리턴 Analysis