public function __construct($query, $type = null) { $this->setType($type); $this->setQuery($query); }