Drest\Mapping\RouteMetaData::getClassMetaData PHP Method

getClassMetaData() public method

Get this classes metadata object
public getClassMetaData ( ) : Drest\Mapping\ClassMetaData
return Drest\Mapping\ClassMetaData $class_metadata
    public function getClassMetaData()
    {
        return $this->class_metadata;
    }

Usage Example

Example #1
0
 /**
  * Set the default exposure fields using the configured exposure depth
  * @param  EntityManager $em
  * @param  integer       $exposureDepth
  * @param  integer       $exposureRelationsFetchType
  * @return ExposeFields  $this object instance
  */
 public function configureExposeDepth(EntityManager $em, $exposureDepth = 0, $exposureRelationsFetchType = null)
 {
     if (!empty($this->route_expose)) {
         $this->fields = $this->route_expose;
     } else {
         $this->processExposeDepth($this->fields, $this->route->getClassMetaData()->getClassName(), $em, $exposureDepth, $exposureRelationsFetchType);
     }
     return $this;
 }
All Usage Examples Of Drest\Mapping\RouteMetaData::getClassMetaData