src/Bcol/Component/Type/Collection/TypedCachedCollection.php
public function filter(Closure $p)
    {
        $elements = $this->getCollection()->filter($p)->toArray();

        return new static($this->name, $this->cache, $elements);
    }
public function filter(Closure $p)
    {
        $elements = $this->getCollection()->filter($p)->toArray();

        return new static($this->name, $this->cache, $elements);
    }
@param callable $p

@return \Doctrine\Common\Collections\Collection|static