public function make(string $key = null, $value = null): \BearFramework\App\CacheItem
    {
        if ($this->newCacheItemCache === null) {
            $this->newCacheItemCache = new CacheItem();
        }
        $object = clone($this->newCacheItemCache);
        if ($key !== null) {
            $object->key = $key;
        }
        if ($value !== null) {
            $object->value = $value;
        }
        return $object;
    }
public function make(string $key = null, $value = null): \BearFramework\App\CacheItem
    {
        if ($this->newCacheItemCache === null) {
            $this->newCacheItemCache = new CacheItem();
        }
        $object = clone($this->newCacheItemCache);
        if ($key !== null) {
            $object->key = $key;
        }
        if ($value !== null) {
            $object->value = $value;
        }
        return $object;
    }
public function make ( string $ key = null , $ value = null ) : \ BearFramework \ App \ CacheItem { if ( $ this -> newCacheItemCache === null ) { $ this -> newCacheItemCache = new CacheItem ( ) ; } $ object = clone ( $ this -> newCacheItemCache ) ; if ( $ key !== null ) { $ object -> key = $ key ; } if ( $ value !== null ) { $ object -> value = $ value ; } return $ object ; }
Constructs a new cache item and returns it.

@param string|null $key The key of the cache item.
@param string|null $value The value of the cache item.
@return \BearFramework\App\CacheItem Returns a new cache item.
Constructs a new cache item and returns it .