| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- declare(strict_types=1);
- /**
- * This file is part of Hyperf.
- *
- * @link https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact group@hyperf.io
- * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
- namespace Hyperf\Database\Commands;
- class ModelData
- {
- public function __construct(protected string $class, protected array $columns)
- {
- }
- public function getColumns(): array
- {
- return $this->columns;
- }
- public function setColumns(array $columns): static
- {
- $this->columns = $columns;
- return $this;
- }
- public function getClass(): string
- {
- return $this->class;
- }
- public function setClass(string $class): static
- {
- $this->class = $class;
- return $this;
- }
- }
|