public function toPhpValue() { if (null === $this->getDefault()) { return parent::toPhpValue(); } return "'{$this->getDefault()}'"; }
public function toPhpValue() { if (null === $this->getDefault()) { return parent::toPhpValue(); } return intval($this->getDefault()); }
/** * * @param \G\Tab\DataType_Abstract $field */ protected function toAttributeItem($field) { $str = "\n" . $field->toAttributeComment() . ' protected $' . $field->toAttributeName() . " = " . $field->toPhpValue() . ";\n"; return $str; }