Dothiv/ValueObject/PathValue.php
public function addFilenameSuffix($suffix)
    {
        $path                 = $this->fi->getPath();
        $ext                  = $this->fi->getExtension();
        $nameWithoutExtension = preg_replace('/\.' . $ext . '$/', '', $this->fi->getFilename());
        $this->fi             = new \SplFileInfo(sprintf('%s/%s%s.%s', $path, $nameWithoutExtension, $suffix, $ext));
        return $this;
    }
public function addFilenameSuffix($suffix)
    {
        $path                 = $this->fi->getPath();
        $ext                  = $this->fi->getExtension();
        $nameWithoutExtension = preg_replace('/\.' . $ext . '$/', '', $this->fi->getFilename());
        $this->fi             = new \SplFileInfo(sprintf('%s/%s%s.%s', $path, $nameWithoutExtension, $suffix, $ext));
        return $this;
    }
public function addFilenameSuffix ( $ suffix ) { $ path = $ this -> fi -> getPath ( ) ; $ ext = $ this -> fi -> getExtension ( ) ; $ nameWithoutExtension = preg_replace ( '/\.' . $ ext . '$/' , '' , $ this -> fi -> getFilename ( ) ) ; $ this -> fi = new \ SplFileInfo ( sprintf ( '%s/%s%s.%s' , $ path , $ nameWithoutExtension , $ suffix , $ ext ) ) ; return $ this ; }
Adds a suffix the the filename.

@param $suffix

@return self
Adds a suffix the the filename .