Doctrine\OXM\Tools\XmlEntityGenerator::setGenerateStubMethods PHP Метод

setGenerateStubMethods() публичный Метод

Set whether or not to generate stub methods for the xml-entity
public setGenerateStubMethods ( boolean $bool ) : void
$bool boolean
Результат void
    public function setGenerateStubMethods($bool)
    {
        $this->generateXmlEntityStubMethods = $bool;
    }

Usage Example

 protected function getXmlEntityGenerator()
 {
     $xmlEntityGenerator = new XmlEntityGenerator();
     $xmlEntityGenerator->setGenerateAnnotations(false);
     $xmlEntityGenerator->setGenerateStubMethods(true);
     $xmlEntityGenerator->setRegenerateXmlEntityIfExists(false);
     $xmlEntityGenerator->setUpdateXmlEntityIfExists(true);
     $xmlEntityGenerator->setNumSpaces(4);
     return $xmlEntityGenerator;
 }