PHP 클래스 JMOlivas\Phpqa\Input\FilesOption

파일 보기 프로젝트 열기: jmolivas/phpqa 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $files )
isAbsent ( ) : boolean Returns true if this option is not provided
isEmpty ( ) : boolean Returns true if this option is provided but has no values
normalize ( ) : array Normalize the provided values as an array

메소드 상세

__construct() 공개 메소드

public __construct ( array $files )
$files array

isAbsent() 공개 메소드

Returns true if this option is not provided
public isAbsent ( ) : boolean
리턴 boolean

isEmpty() 공개 메소드

Returns true if this option is provided but has no values
public isEmpty ( ) : boolean
리턴 boolean

normalize() 공개 메소드

- If it's either empty or absent, it returns an empty array - If it's a single value separated by commas, it converts it to array - Otherwise returns the value as is.
public normalize ( ) : array
리턴 array