private function getParents($name) {
        if (!isset($this->_parents[$name])) {
            $class = new \ReflectionClass($name);
            $parents = array($name);
            $interfaces = $class->getInterfaceNames();
            while ($class = $class->getParentClass())
                $parents[] = $class->getName();
            $this->_parents[$name] = array_reverse($parents);
            foreach ($interfaces as $int) {
                $this->_parents[$name][] = $int;
            }
        }
        return $this->_parents[$name];
    }
private function getParents($name) {
        if (!isset($this->_parents[$name])) {
            $class = new \ReflectionClass($name);
            $parents = array($name);
            $interfaces = $class->getInterfaceNames();
            while ($class = $class->getParentClass())
                $parents[] = $class->getName();
            $this->_parents[$name] = array_reverse($parents);
            foreach ($interfaces as $int) {
                $this->_parents[$name][] = $int;
            }
        }
        return $this->_parents[$name];
    }
private function getParents ( $ name ) { if ( ! isset ( $ this -> _parents [ $ name ] ) ) { $ class = new \ ReflectionClass ( $ name ) ; $ parents = array ( $ name ) ; $ interfaces = $ class -> getInterfaceNames ( ) ; while ( $ class = $ class -> getParentClass ( ) ) $ parents [ ] = $ class -> getName ( ) ; $ this -> _parents [ $ name ] = array_reverse ( $ parents ) ; foreach ( $ interfaces as $ int ) { $ this -> _parents [ $ name ] [ ] = $ int ; } } return $ this -> _parents [ $ name ] ; }
Get all parent class and implemented interfaces for selected class;
@param string $name
@return string[]
Get all parent class and implemented interfaces for selected class ;