WellCommerce\Bundle\MediaBundle\Entity\Media::getPath PHP 메소드

getPath() 공개 메소드

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

Usage 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());
 }