src/Charcoal/Cache/CacheConfig.php
public function addType($type)
    {
        if (!in_array($type, $this->validTypes())) {
            throw new InvalidArgumentException(
                sprintf('Invalid cache type: "%s"', $type)
            );
        }

        $this->types[$type] = true;
        return $this;
    }
public function addType($type)
    {
        if (!in_array($type, $this->validTypes())) {
            throw new InvalidArgumentException(
                sprintf('Invalid cache type: "%s"', $type)
            );
        }

        $this->types[$type] = true;
        return $this;
    }
public function addType ( $ type ) { if ( ! in_array ( $ type , $ this -> validTypes ( ) ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid cache type: "%s"' , $ type ) ) ; } $ this -> types [ $ type ] = true ; return $ this ; }
Add a cache type to use.

@param  string $type The cache type.
@throws InvalidArgumentException If the type is not a string or unsupported.
@return CacheConfig Chainable
Add a cache type to use .