src/BuilderBag.php
public function all($type = null)
    {
        return array_filter(
            $this->bag,
            /** @var BuilderInterface $builder */
            function (BuilderInterface $builder) use ($type) {
                return $type === null || $builder->getType() == $type;
            }
        );
    }
public function all($type = null)
    {
        return array_filter(
            $this->bag,
            /** @var BuilderInterface $builder */
            function (BuilderInterface $builder) use ($type) {
                return $type === null || $builder->getType() == $type;
            }
        );
    }
public function all ( $ type = null ) { return array_filter ( $ this -> bag , /** @var BuilderInterface $builder */ function ( BuilderInterface $ builder ) use ( $ type ) { return $ type === null || $ builder -> getType ( ) == $ type ; } ) ; }
Returns all builders contained.

@param string|null $type Builder type.

@return BuilderInterface[]
Returns all builders contained .