<?php

namespace App\Model;

use Symfony\Component\Uid\Uuid;

class NewsCategory
{
    private Uuid $id;
    private string $name;
    private string $code;


    public function __construct(Uuid $id, string $name, string $code)
    {
        $this->id = $id;
        $this->name = $name;
        $this->code = $code;
    }

    public function getId(): Uuid
    {
        return $this->id;
    }

    public function getName(): string
    {
        return $this->name;
    }

    public function getCode(): string
    {
        return $this->code;
    }
}