src/Mordilion/Configurable/Configuration/Writer/Yaml.php
public function setEncoder(callable $encoder): Yaml
    {
        if (!is_callable($encoder)) {
            throw new \InvalidArgumentException('The provided encoder must be callable.');
        }

        $this->encoder = $encoder;

        return $this;
    }
public function setEncoder(callable $encoder): Yaml
    {
        if (!is_callable($encoder)) {
            throw new \InvalidArgumentException('The provided encoder must be callable.');
        }

        $this->encoder = $encoder;

        return $this;
    }
public function setEncoder ( callable $ encoder ) : Yaml { if ( ! is_callable ( $ encoder ) ) { throw new \ InvalidArgumentException ( 'The provided encoder must be callable.' ) ; } $ this -> encoder = $ encoder ; return $ this ; }
Sets the encoder.

@param callable $encoder

@return Yaml
Sets the encoder .