public function __construct(QueryRepository $query) { parent::__construct(); $this->query = $query; }