WellCommerce\Bundle\MediaBundle\Entity\Media::getPath PHP Method

getPath() public method

public getPath ( ) : string
return string
    public function getPath() : string
    {
        return $this->path;
    }

Usage Example

Example #1
0
 /**
  * Returns relative path to file
  *
  * @param Media $media
  *
  * @return string
  */
 public function getRelativePath(Media $media)
 {
     return sprintf('%s/%s.%s', $media->getPath(), $media->getId(), $media->getExtension());
 }