Drest\Query\ExposeFields::configureExposeDepth PHP Method

configureExposeDepth() public method

Set the default exposure fields using the configured exposure depth
public configureExposeDepth ( Drest\EntityManagerRegistry $emr, integer $exposureDepth, integer $exposureRelationsFetchType = null ) : ExposeFields
$emr Drest\EntityManagerRegistry
$exposureDepth integer
$exposureRelationsFetchType integer
return ExposeFields $this object instance
    public function configureExposeDepth(EntityManagerRegistry $emr, $exposureDepth = 0, $exposureRelationsFetchType = null)
    {
        if (!empty($this->route_expose)) {
            $this->fields = $this->route_expose;
        } else {
            $this->processExposeDepth($this->fields, $this->route->getClassMetaData()->getClassName(), $emr, $exposureDepth, $exposureRelationsFetchType);
        }
        return $this;
    }