/** * getContents() * * @return string */ public function getContents() { $filter = new \Zend\Filter\Word\DashToCamelCase(); $className = $filter->filter($this->_projectProviderName) . 'Provider'; $class = new \Zend\CodeGenerator\Php\PhpClass(array( 'name' => $className, 'extendedClass' => '\Zend\Tool\Project\Provider\AbstractProvider' )); $methods = array(); foreach ($this->_actionNames as $actionName) { $methods[] = new \Zend\CodeGenerator\Php\PhpMethod(array( 'name' => $actionName, 'body' => ' /** @todo Implementation */' )); } if ($methods) { $class->setMethods($methods); } $codeGenFile = new \Zend\CodeGenerator\Php\PhpFile(array( 'classes' => array($class) )); return $codeGenFile->generate(); }