ScriptFUSION\Porter\Specification\ImportSpecification::setCacheAdvice PHP Method

setCacheAdvice() final public method

final public setCacheAdvice ( CacheAdvice $cacheAdvice )
$cacheAdvice ScriptFUSION\Porter\Cache\CacheAdvice
    public final function setCacheAdvice(CacheAdvice $cacheAdvice)
    {
        $this->cacheAdvice = $cacheAdvice;
        return $this;
    }

Usage Example

示例#1
0
 public function testCacheUnavailable()
 {
     $this->setExpectedException(CacheUnavailableException::class);
     $this->porter->import($this->specification->setCacheAdvice(CacheAdvice::MUST_CACHE()));
 }
All Usage Examples Of ScriptFUSION\Porter\Specification\ImportSpecification::setCacheAdvice