PHP Class WellCommerce\Component\DataSet\Cache\CacheOptions

Author: Adam Piotrowski ([email protected])
Show file Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$enabled boolean
$tags array
$ttl integer

Public Methods

Method Description
__construct ( boolean $enabled = false, integer $ttl = 3600, array $tags = [] ) CacheOptions constructor.
getTags ( ) : array
getTtl ( ) : integer
isEnabled ( ) : boolean

Method Details

__construct() public method

CacheOptions constructor.
public __construct ( boolean $enabled = false, integer $ttl = 3600, array $tags = [] )
$enabled boolean
$ttl integer
$tags array

getTags() public method

public getTags ( ) : array
return array

getTtl() public method

public getTtl ( ) : integer
return integer

isEnabled() public method

public isEnabled ( ) : boolean
return boolean

Property Details

$enabled protected property

protected bool $enabled
return boolean

$tags protected property

protected array $tags
return array

$ttl protected property

protected int $ttl
return integer