PHP 클래스 GrumPHP\Linter\Yaml\YamlLinter

상속: implements GrumPHP\Linter\LinterInterface
파일 보기 프로젝트 열기: phpro/grumphp 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Filesystem $filesystem ) YamlLinter constructor.
isInstalled ( ) : boolean
lint ( SplFileInfo $file ) : LintErrorsCollection
setExceptionOnInvalidType ( boolean $exceptionOnInvalidType )
setObjectSupport ( boolean $objectSupport )
supportsFlags ( ) : boolean This method can be used to determine the Symfony Linter version.

비공개 메소드들

메소드 설명
parseYaml ( string $content )

메소드 상세

__construct() 공개 메소드

YamlLinter constructor.
public __construct ( Filesystem $filesystem )
$filesystem GrumPHP\Util\Filesystem

isInstalled() 공개 메소드

public isInstalled ( ) : boolean
리턴 boolean

lint() 공개 메소드

public lint ( SplFileInfo $file ) : LintErrorsCollection
$file SplFileInfo
리턴 GrumPHP\Collection\LintErrorsCollection

setExceptionOnInvalidType() 공개 메소드

public setExceptionOnInvalidType ( boolean $exceptionOnInvalidType )
$exceptionOnInvalidType boolean

setObjectSupport() 공개 메소드

public setObjectSupport ( boolean $objectSupport )
$objectSupport boolean

supportsFlags() 공개 정적인 메소드

If this method returns true, you are using Symfony YAML > 3.1.
public static supportsFlags ( ) : boolean
리턴 boolean