public function depthLimit($depthLimit = null)
    {
        if($depthLimit !== null) {
            $this->depthLimit = (int) $depthLimit;
        }

        return $this->depthLimit;
    }
public function depthLimit($depthLimit = null)
    {
        if($depthLimit !== null) {
            $this->depthLimit = (int) $depthLimit;
        }

        return $this->depthLimit;
    }
public function depthLimit ( $ depthLimit = null ) { if ( $ depthLimit !== null ) { $ this -> depthLimit = ( int ) $ depthLimit ; } return $ this -> depthLimit ; }
Sets depth limit

@param int $depthLimit

@return int
Sets depth limit