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

Inheritance: extends Elcodi\Component\Core\Command\Abstracts\AbstractElcodiCommand
Show file Open project: elcodi/elcodi Class Usage Examples

Protected Properties

Property Type Description
$locationDirector Elcodi\Component\Core\Services\ObjectDirector Location director

Public Methods

Method Description
__construct ( Elcodi\Component\Core\Services\ObjectDirector $locationDirector ) Construct.

Protected Methods

Method 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

Method 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 method

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

configure() protected method

configure.
protected configure ( )

deleteCountry() protected method

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 method

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
return array Country array from input

Property Details

$locationDirector protected property

Location director
protected ObjectDirector,Elcodi\Component\Core\Services $locationDirector
return Elcodi\Component\Core\Services\ObjectDirector