public function getResource($type, &$name)
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $name;
            case DbResourceTypes::TYPE_TABLE:
                $this->loadTable($name);

                return $name;
            case DbResourceTypes::TYPE_VIEW:
                $this->loadView($name);

                return $name;
            case DbResourceTypes::TYPE_PROCEDURE:
                $this->loadProcedure($name);

                return $name;
            case DbResourceTypes::TYPE_FUNCTION:
                $this->loadFunction($name);

                return $name;
            default:
                return null;
        }
    }
public function getResource($type, &$name)
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $name;
            case DbResourceTypes::TYPE_TABLE:
                $this->loadTable($name);

                return $name;
            case DbResourceTypes::TYPE_VIEW:
                $this->loadView($name);

                return $name;
            case DbResourceTypes::TYPE_PROCEDURE:
                $this->loadProcedure($name);

                return $name;
            case DbResourceTypes::TYPE_FUNCTION:
                $this->loadFunction($name);

                return $name;
            default:
                return null;
        }
    }
public function getResource ( $ type , & $ name ) { switch ( $ type ) { case DbResourceTypes :: TYPE_SCHEMA : return $ name ; case DbResourceTypes :: TYPE_TABLE : $ this -> loadTable ( $ name ) ; return $ name ; case DbResourceTypes :: TYPE_VIEW : $ this -> loadView ( $ name ) ; return $ name ; case DbResourceTypes :: TYPE_PROCEDURE : $ this -> loadProcedure ( $ name ) ; return $ name ; case DbResourceTypes :: TYPE_FUNCTION : $ this -> loadFunction ( $ name ) ; return $ name ; default : return null ; } }
Return the metadata about a particular schema resource.

@param string                     $type Resource type
@param string|NamedResourceSchema $name Resource name

@return null|mixed
@throws \Exception
Return the metadata about a particular schema resource .