PartKeepr\ImageBundle\Entity\CachedImage::__construct PHP Method

__construct() public method

Creates a new cache entry for a specific image.
public __construct ( UploadedFile $image, string $cacheFile )
$image PartKeepr\UploadedFileBundle\Entity\UploadedFile The image to cache
$cacheFile string The file which holds the cached image
    public function __construct(UploadedFile $image, $cacheFile)
    {
        $this->originalId = (int) $image->getId();
        $this->originalType = $image->getType();
        $this->cacheFile = $cacheFile;
    }