src/Charcoal/Cache/CacheBuilder.php
private function setPoolClass($class)
    {
        if (!class_exists($class)) {
            throw new InvalidArgumentException(
                sprintf('Pool class %s does not exist', $class)
            );
        }

        $interfaces = class_implements($class, true);

        if (!in_array(PoolInterface::class, $interfaces)) {
            throw new InvalidArgumentException(sprintf(
                'Pool class %s must inherit from %s',
                $class,
                PoolInterface::class
            ));
        }

        $this->poolClass = $class;
    }
private function setPoolClass($class)
    {
        if (!class_exists($class)) {
            throw new InvalidArgumentException(
                sprintf('Pool class %s does not exist', $class)
            );
        }

        $interfaces = class_implements($class, true);

        if (!in_array(PoolInterface::class, $interfaces)) {
            throw new InvalidArgumentException(sprintf(
                'Pool class %s must inherit from %s',
                $class,
                PoolInterface::class
            ));
        }

        $this->poolClass = $class;
    }
private function setPoolClass ( $ class ) { if ( ! class_exists ( $ class ) ) { throw new InvalidArgumentException ( sprintf ( 'Pool class %s does not exist' , $ class ) ) ; } $ interfaces = class_implements ( $ class , true ) ; if ( ! in_array ( PoolInterface :: class , $ interfaces ) ) { throw new InvalidArgumentException ( sprintf ( 'Pool class %s must inherit from %s' , $ class , PoolInterface :: class ) ) ; } $ this -> poolClass = $ class ; }
Sets the specific Pool class generated by the cache builder.

Using this function developers can have the builder generate custom Pool objects.

@param  string $class The pool class name.
@throws InvalidArgumentException When passed an invalid or nonexistant class.
@return void
Sets the specific Pool class generated by the cache builder .