public function __construct(Query $query) { $this->query = $query; $this->request = $query->getRequest(); }