public function __construct(AbstractQuery $filter = null) { if (!is_null($filter)) { $this->setFilter($filter); } }