Nette\PhpGenerator\ClassType::getMethods PHP Method

getMethods() public method

public getMethods ( ) : Method[]
return Method[]
    public function getMethods()
    {
        return $this->methods;
    }

Usage Example

Exemplo n.º 1
0
 public function afterCompile(Nette\PhpGenerator\ClassType $class)
 {
     $methods = $class->getMethods();
     $init = $methods['initialize'];
     $init->addBody('vojtabiberle\\MediaStorage\\Bridges\\Nette\\Forms\\Controls\\SingleSelectFileChoicer::register();');
     $init->addBody('vojtabiberle\\MediaStorage\\Bridges\\Nette\\Forms\\Controls\\MultiSelectFileChoicer::register();');
 }
All Usage Examples Of Nette\PhpGenerator\ClassType::getMethods