. */ namespace SP\DataModel; use SP\Domain\Common\Models\ItemWithIdAndNameModel; use SP\Domain\Common\Models\Model; /** * Class ItemData * * @package SP\DataModel */ class Item extends Model implements ItemWithIdAndNameModel { protected ?int $id = null; protected ?string $name = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } }