saveAsPhp5() public method

public saveAsPhp5 ( string $destination )
$destination string
Esempio n. 1
0
 protected function convertFile(InputInterface $input)
 {
     $converter = new Converter($input->getArgument('source'));
     $destination = $input->getArgument('destination');
     if (file_exists($destination) && !$input->getOption('overwrite')) {
         throw InvalidParameter::destinationExist();
     }
     $converter->saveAsPhp5($destination);
 }
Esempio n. 2
0
 /**
  * @param string $filePath
  */
 protected function convertToPhp5($filePath)
 {
     $converter = new Converter($filePath);
     $converter->saveAsPhp5($filePath);
 }