PHP Class Gush\Adapter\DefaultConfigurator

Inheritance: implements Gush\Adapter\Configurator
显示文件 Open project: gushphp/gush Class Usage Examples

Protected Properties

Property Type Description
$apiUrl string
$authenticationOptions string[]
$label string
$questionHelper Symfony\Component\Console\Helper\QuestionHelper
$repoUrl string

Public Methods

Method Description
__construct ( Symfony\Component\Console\Helper\QuestionHelper $questionHelper, $label, $apiUrl, $repoUrl, $authenticationOptions = [] )
interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
validateNoneEmpty ( $value ) : mixed Validates if the value is none-empty.
validateUrl ( string $url ) : string Validates if the value is none-empty and a valid URL.

Method Details

__construct() public method

public __construct ( Symfony\Component\Console\Helper\QuestionHelper $questionHelper, $label, $apiUrl, $repoUrl, $authenticationOptions = [] )
$questionHelper Symfony\Component\Console\Helper\QuestionHelper

interact() public method

public interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

validateNoneEmpty() public method

Validates if the value is none-empty.
public validateNoneEmpty ( $value ) : mixed
$value
return mixed original value when valid

validateUrl() public method

Validates if the value is none-empty and a valid URL.
public validateUrl ( string $url ) : string
$url string
return string

Property Details

$apiUrl protected_oe property

protected string $apiUrl
return string

$authenticationOptions protected_oe property

protected string[] $authenticationOptions
return string[]

$label protected_oe property

protected string $label
return string

$questionHelper protected_oe property

protected QuestionHelper,Symfony\Component\Console\Helper $questionHelper
return Symfony\Component\Console\Helper\QuestionHelper

$repoUrl protected_oe property

protected string $repoUrl
return string