/** * @param XsdGeneratePhpArgs $input * @return array */ protected function getTargetDirectories(XsdGeneratePhpArgs $input) { $this->outputWriteLine("Destination:"); $targets = array($input->getNamespace() => $input->getDestination()); foreach ($targets as $targetNamespace => $targetDestination) { if (!is_dir($targetDestination)) { mkdir($targetDestination, 0777, true); } $this->outputWriteLine(' + <comment>' . strtr($targetNamespace, "\\", "/") . ' </comment>=> <info>' . $targetDestination . '</info>'); } return $targets; }