name = $name; $this->is_primary = $is_primary; $this->comment = $comment; $this->is_nullable = $is_nullable; } public function isPrimary() : bool { return $this->is_primary; } public function isNullable(): bool { return $this->is_nullable; } // Возвращает название колонки, но добавляет знак доллара перед ним public function getNameAsVariable() : string { return '$'.$this->name; } public function getName() : string { return $this->name; } public function getComment() : string { return $this->comment; } }