public function getTypes()
    {
        $schema = StaticSchema::inst();
        $tree = array_merge(
            [$this->rootClass],
            $schema->getDescendants($this->rootClass)
        );

        return array_map(function ($class) use ($tree, $schema) {
            return $schema->typeNameForDataObject($class);
        }, $tree);
    }
public function getTypes()
    {
        $schema = StaticSchema::inst();
        $tree = array_merge(
            [$this->rootClass],
            $schema->getDescendants($this->rootClass)
        );

        return array_map(function ($class) use ($tree, $schema) {
            return $schema->typeNameForDataObject($class);
        }, $tree);
    }
public function getTypes ( ) { $ schema = StaticSchema :: inst ( ) ; $ tree = array_merge ( [ $ this -> rootClass ] , $ schema -> getDescendants ( $ this -> rootClass ) ) ; return array_map ( function ( $ class ) use ( $ tree , $ schema ) { return $ schema -> typeNameForDataObject ( $ class ) ; } , $ tree ) ; }
Get all the GraphQL types in the ancestry
@return array
Get all the GraphQL types in the ancestry