Jarves\AssetHandler\AssetInfo::setAllowCompression PHP Method

setAllowCompression() public method

public setAllowCompression ( boolean $allowCompression )
$allowCompression boolean
    public function setAllowCompression($allowCompression)
    {
        $this->allowCompression = filter_var($allowCompression, FILTER_VALIDATE_BOOLEAN);
    }

Usage Example

Beispiel #1
0
 /**
  * @return AssetInfo
  */
 public function getAssetInfo()
 {
     $assetInfo = new AssetInfo();
     $assetInfo->setPath($this->getSrc());
     $assetInfo->setPriority($this->getPriority());
     $assetInfo->setAllowCompression($this->getCompression());
     $assetInfo->setContentType($this->getType());
     $assetInfo->setContent($this->getContent());
     return $assetInfo;
 }