PHP Класс JMOlivas\Phpqa\Input\FilesOption

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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