public function save(PhpClass $service, array $types)
    {
        $this->setOutputDirectory();

        $this->saveClassToFile($service);
        foreach ($types as $type) {
            $this->saveClassToFile($type);
        }

        $classes = array_merge(array($service), $types);
        $this->saveAutoloader($service->getIdentifier(), $classes);
    }
public function save(PhpClass $service, array $types)
    {
        $this->setOutputDirectory();

        $this->saveClassToFile($service);
        foreach ($types as $type) {
            $this->saveClassToFile($type);
        }

        $classes = array_merge(array($service), $types);
        $this->saveAutoloader($service->getIdentifier(), $classes);
    }
public function save ( PhpClass $ service , array $ types ) { $ this -> setOutputDirectory ( ) ; $ this -> saveClassToFile ( $ service ) ; foreach ( $ types as $ type ) { $ this -> saveClassToFile ( $ type ) ; } $ classes = array_merge ( array ( $ service ) , $ types ) ; $ this -> saveAutoloader ( $ service -> getIdentifier ( ) , $ classes ) ; }
Saves the service and types php code to file

@param PhpClass $service
@param array $types
Saves the service and types php code to file