/** * {@inheritDoc} */ public function toString(Quoter $quoter) { if (isset($this->model)) { return $quoter->quoteModel($this->model) . '.' . $quoter->quoteField($this->field); } return $quoter->quoteField($this->field); }
/** * {@inheritdoc} */ public function toString(Quoter $quoter) { $str = ''; if (isset($this->model)) { if ($this->quoteModel) { $str = $quoter->quoteModel($this->model) . '.'; } else { $str = $this->model . '.'; } } if ($this->quoteField) { $str .= $quoter->quoteField($this->field); } else { $str .= $this->field; } return $str; }