text = $text; } public function getQuery($field = '_all') { return array( 'match' => array( $field => $this->text ) ); } public function __toString() { return sprintf('"%s"', $this->text); } }