src/ClassGeneration/PhpClass.php
protected function createMethodsFromInterface($interfaceName)
    {
        if (!interface_exists($interfaceName)) {
            return;
        }

        $refInterface = new \ReflectionClass($interfaceName);
        $methodsReflected = $refInterface->getMethods();
        foreach ($methodsReflected as $methodReflected) {
            if ($this->getMethodCollection()->exists($methodReflected->getName())) {
                continue;
            }
            $method = Method::createFromReflection($methodReflected);
            $this->addMethod($method);
        }
    }
protected function createMethodsFromInterface($interfaceName)
    {
        if (!interface_exists($interfaceName)) {
            return;
        }

        $refInterface = new \ReflectionClass($interfaceName);
        $methodsReflected = $refInterface->getMethods();
        foreach ($methodsReflected as $methodReflected) {
            if ($this->getMethodCollection()->exists($methodReflected->getName())) {
                continue;
            }
            $method = Method::createFromReflection($methodReflected);
            $this->addMethod($method);
        }
    }
protected function createMethodsFromInterface ( $ interfaceName ) { if ( ! interface_exists ( $ interfaceName ) ) { return ; } $ refInterface = new \ ReflectionClass ( $ interfaceName ) ; $ methodsReflected = $ refInterface -> getMethods ( ) ; foreach ( $ methodsReflected as $ methodReflected ) { if ( $ this -> getMethodCollection ( ) -> exists ( $ methodReflected -> getName ( ) ) ) { continue ; } $ method = Method :: createFromReflection ( $ methodReflected ) ; $ this -> addMethod ( $ method ) ; } }
Creates methods from Interface.

@param string $interfaceName
Creates methods from Interface .