public function __construct(\ArrayIterator $metadata, $filter) { $this->filter = (array) $filter; parent::__construct($metadata); }