src/Bartlett/UmlWriter/Processor/AbstractProcessor.php
protected function writeObjectInheritance($object, $parentName)
    {
        try {
            $parent      = $this->reflector->getClass($parentName);
            $longName    = $parent->getName();

            $this->writeObjectElement($parent);

        } catch (\Exception $e) {
            // object is undeclared in data source
            $parts       = explode('\\', $parentName);
            $shortName   = array_pop($parts);
            $longName    = $parentName;
            $ns          = implode($this->namespaceSeparator, $parts);

            if (!isset($this->objects[$ns])) {
                $this->objects[$ns] = array();
            }

            if (!array_key_exists($shortName, $this->objects[$ns])) {
                $type = $object->isInterface() ? 'interface' : 'class';
                $this->pushObject($ns, $shortName, $longName, $type);
            }
        }

        $this->pushEdge(array($object->getName(), $longName));
    }
protected function writeObjectInheritance($object, $parentName)
    {
        try {
            $parent      = $this->reflector->getClass($parentName);
            $longName    = $parent->getName();

            $this->writeObjectElement($parent);

        } catch (\Exception $e) {
            // object is undeclared in data source
            $parts       = explode('\\', $parentName);
            $shortName   = array_pop($parts);
            $longName    = $parentName;
            $ns          = implode($this->namespaceSeparator, $parts);

            if (!isset($this->objects[$ns])) {
                $this->objects[$ns] = array();
            }

            if (!array_key_exists($shortName, $this->objects[$ns])) {
                $type = $object->isInterface() ? 'interface' : 'class';
                $this->pushObject($ns, $shortName, $longName, $type);
            }
        }

        $this->pushEdge(array($object->getName(), $longName));
    }
protected function writeObjectInheritance ( $ object , $ parentName ) { try { $ parent = $ this -> reflector -> getClass ( $ parentName ) ; $ longName = $ parent -> getName ( ) ; $ this -> writeObjectElement ( $ parent ) ; } catch ( \ Exception $ e ) { // object is undeclared in data source $ parts = explode ( '\\' , $ parentName ) ; $ shortName = array_pop ( $ parts ) ; $ longName = $ parentName ; $ ns = implode ( $ this -> namespaceSeparator , $ parts ) ; if ( ! isset ( $ this -> objects [ $ ns ] ) ) { $ this -> objects [ $ ns ] = array ( ) ; } if ( ! array_key_exists ( $ shortName , $ this -> objects [ $ ns ] ) ) { $ type = $ object -> isInterface ( ) ? 'interface' : 'class' ; $ this -> pushObject ( $ ns , $ shortName , $ longName , $ type ) ; } } $ this -> pushEdge ( array ( $ object -> getName ( ) , $ longName ) ) ; }
Prints an object inheritance

@param ReflectionClass $object class/interface instance
@param string          $parentName Fully qualified name of the parent

@return void
Prints an object inheritance