Elcodi\Component\Geo\Command\Abstracts\AbstractLocationCommand::dropCountry PHP Méthode

dropCountry() private méthode

Drops the country and its relations.
private dropCountry ( Elcodi\Component\Geo\Entity\Interfaces\LocationInterface $location, Symfony\Component\Console\Output\OutputInterface $output )
$location Elcodi\Component\Geo\Entity\Interfaces\LocationInterface The location to remove
$output Symfony\Component\Console\Output\OutputInterface A console output
    private function dropCountry(LocationInterface $location, OutputInterface $output)
    {
        $countryCode = $location->getCode();
        $this->startStopWatch('drop_location');
        $this->locationDirector->remove($location);
        $stopWatchEvent = $this->stopStopWatch('drop_location');
        $this->printMessage($output, 'Geo', 'Country ' . $countryCode . ' dropped in ' . $stopWatchEvent->getDuration() . ' milliseconds');
        return $this;
    }