src/Charcoal/Cache/CacheBuilder.php
private function parsePoolOptions($options)
    {
        $defaults = [
            'pool_class' => $this->poolClass,
            'item_class' => $this->itemClass,
            'namespace'  => $this->namespace,
            'logger'     => $this->logger,
        ];

        if ($options === null) {
            return $defaults;
        }

        if (is_string($options)) {
            $options = [
                'namespace' => $options
            ];
        }

        if (!is_array($options)) {
            return $defaults;
        }

        return array_replace($defaults, $options);
    }
private function parsePoolOptions($options)
    {
        $defaults = [
            'pool_class' => $this->poolClass,
            'item_class' => $this->itemClass,
            'namespace'  => $this->namespace,
            'logger'     => $this->logger,
        ];

        if ($options === null) {
            return $defaults;
        }

        if (is_string($options)) {
            $options = [
                'namespace' => $options
            ];
        }

        if (!is_array($options)) {
            return $defaults;
        }

        return array_replace($defaults, $options);
    }
private function parsePoolOptions ( $ options ) { $ defaults = [ 'pool_class' => $ this -> poolClass , 'item_class' => $ this -> itemClass , 'namespace' => $ this -> namespace , 'logger' => $ this -> logger , ] ; if ( $ options === null ) { return $ defaults ; } if ( is_string ( $ options ) ) { $ options = [ 'namespace' => $ options ] ; } if ( ! is_array ( $ options ) ) { return $ defaults ; } return array_replace ( $ defaults , $ options ) ; }
Prepare any pool options for the new pool object.

@param  mixed $options Settings for the new pool.
@return array
Prepare any pool options for the new pool object .