Codesleeve\Stapler\Attachment::getInterpolator PHP Method

getInterpolator() public method

Accessor method for the interpolator property.
public getInterpolator ( ) : Codesleeve\Stapler\Interfaces\Interpolator
return Codesleeve\Stapler\Interfaces\Interpolator
    public function getInterpolator()
    {
        return $this->interpolator;
    }

Usage Example

Example #1
0
 /**
  * Return the key the uploaded file object is stored under within a bucket.
  * 
  * @param  string $styleName 
  * @return string          
  */
 public function path($styleName)
 {
     return $this->attachedFile->getInterpolator()->interpolate($this->attachedFile->path, $this->attachedFile, $styleName);
 }