src/Encoder/EncoderPropertiesTrait.php
public function reset(
        string $urlPrefix = Encoder::DEFAULT_URL_PREFIX,
        iterable $includePaths = Encoder::DEFAULT_INCLUDE_PATHS,
        array $fieldSets = Encoder::DEFAULT_FIELD_SET_FILTERS,
        int $encodeOptions = Encoder::DEFAULT_JSON_ENCODE_OPTIONS,
        int $encodeDepth = Encoder::DEFAULT_JSON_ENCODE_DEPTH
    ): EncoderInterface {
        $this->links          = null;
        $this->profile        = null;
        $this->hasMeta        = false;
        $this->meta           = null;
        $this->jsonApiVersion = null;
        $this->jsonApiMeta    = null;
        $this->hasJsonApiMeta = false;

        $this
            ->withUrlPrefix($urlPrefix)
            ->withIncludedPaths($includePaths)
            ->withFieldSets($fieldSets)
            ->withEncodeOptions($encodeOptions)
            ->withEncodeDepth($encodeDepth);

        return $this;
    }
public function reset(
        string $urlPrefix = Encoder::DEFAULT_URL_PREFIX,
        iterable $includePaths = Encoder::DEFAULT_INCLUDE_PATHS,
        array $fieldSets = Encoder::DEFAULT_FIELD_SET_FILTERS,
        int $encodeOptions = Encoder::DEFAULT_JSON_ENCODE_OPTIONS,
        int $encodeDepth = Encoder::DEFAULT_JSON_ENCODE_DEPTH
    ): EncoderInterface {
        $this->links          = null;
        $this->profile        = null;
        $this->hasMeta        = false;
        $this->meta           = null;
        $this->jsonApiVersion = null;
        $this->jsonApiMeta    = null;
        $this->hasJsonApiMeta = false;

        $this
            ->withUrlPrefix($urlPrefix)
            ->withIncludedPaths($includePaths)
            ->withFieldSets($fieldSets)
            ->withEncodeOptions($encodeOptions)
            ->withEncodeDepth($encodeDepth);

        return $this;
    }
public function reset ( string $ urlPrefix = Encoder :: DEFAULT_URL_PREFIX , iterable $ includePaths = Encoder :: DEFAULT_INCLUDE_PATHS , array $ fieldSets = Encoder :: DEFAULT_FIELD_SET_FILTERS , int $ encodeOptions = Encoder :: DEFAULT_JSON_ENCODE_OPTIONS , int $ encodeDepth = Encoder :: DEFAULT_JSON_ENCODE_DEPTH ) : EncoderInterface { $ this -> links = null ; $ this -> profile = null ; $ this -> hasMeta = false ; $ this -> meta = null ; $ this -> jsonApiVersion = null ; $ this -> jsonApiMeta = null ; $ this -> hasJsonApiMeta = false ; $ this -> withUrlPrefix ( $ urlPrefix ) -> withIncludedPaths ( $ includePaths ) -> withFieldSets ( $ fieldSets ) -> withEncodeOptions ( $ encodeOptions ) -> withEncodeDepth ( $ encodeDepth ) ; return $ this ; }
Reset to initial state.

@param string   $urlPrefix
@param iterable $includePaths
@param array    $fieldSets
@param int      $encodeOptions
@param int      $encodeDepth

@return self|EncoderInterface
Reset to initial state .