PHP Class Elcodi\Component\Geo\Command\Abstracts\AbstractLocationCommand

Inheritance: extends Elcodi\Component\Core\Command\Abstracts\AbstractElcodiCommand
Afficher le fichier Open project: elcodi/elcodi Class Usage Examples

Protected Properties

Свойство Type Description
$locationDirector Elcodi\Component\Core\Services\ObjectDirector Location director

Méthodes publiques

Méthode Description
__construct ( Elcodi\Component\Core\Services\ObjectDirector $locationDirector ) Construct.

Méthodes protégées

Méthode Description
configure ( ) configure.
deleteCountry ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $countryCode ) Ensure deletion of a country.
getCountriesFromInput ( Symfony\Component\Console\Input\InputInterface $input ) : array Get a country list from an input object or throw an Exception if none is properly defined.

Private Methods

Méthode Description
confirmRemoval ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $countryCode ) : boolean Asks to confirm the location removal.
dropCountry ( Elcodi\Component\Geo\Entity\Interfaces\LocationInterface $location, Symfony\Component\Console\Output\OutputInterface $output ) Drops the country and its relations.

Method Details

__construct() public méthode

Construct.
public __construct ( Elcodi\Component\Core\Services\ObjectDirector $locationDirector )
$locationDirector Elcodi\Component\Core\Services\ObjectDirector Location director

configure() protected méthode

configure.
protected configure ( )

deleteCountry() protected méthode

Ensure deletion of a country.
protected deleteCountry ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $countryCode )
$input Symfony\Component\Console\Input\InputInterface The input interface
$output Symfony\Component\Console\Output\OutputInterface The output interface

getCountriesFromInput() protected méthode

Get a country list from an input object or throw an Exception if none is properly defined.
protected getCountriesFromInput ( Symfony\Component\Console\Input\InputInterface $input ) : array
$input Symfony\Component\Console\Input\InputInterface Input
Résultat array Country array from input

Property Details

$locationDirector protected_oe property

Location director
protected ObjectDirector,Elcodi\Component\Core\Services $locationDirector
Résultat Elcodi\Component\Core\Services\ObjectDirector