src/Model/LastVisit/LastVisit.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Model\LastVisit;
  3. use App\Model\Traits\ImportableObjectTrait;
  4. use App\Model\Traits\TimestampableTrait;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. class LastVisit
  8. {
  9.     use TimestampableTrait;
  10.     use ImportableObjectTrait;
  11.     /**
  12.      * @var string
  13.      * @Groups({"list_last_visit", "post_last_visit"})
  14.      */
  15.     private $id;
  16.     /**
  17.      * @var string|null
  18.      * @Assert\NotNull()
  19.      * @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
  20.      */
  21.     private $name;
  22.     /**
  23.      * @var string
  24.      * @Assert\NotNull()
  25.      * @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
  26.      */
  27.     private $url;
  28.     /**
  29.      * @var string|null
  30.      * @Assert\NotNull()
  31.      * @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
  32.      */
  33.     private $prospectId;
  34.     /**
  35.      * @var string|null
  36.      * @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
  37.      */
  38.     private $contactId;
  39.     /**
  40.      * @var string
  41.      * @Assert\NotNull()
  42.      * @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
  43.      */
  44.     private $type;
  45.     /**
  46.      * @return string|null
  47.      */
  48.     public function getId(): ?string
  49.     {
  50.         return $this->id;
  51.     }
  52.     /**
  53.      * @param string $id
  54.      *
  55.      * @return LastVisit
  56.      */
  57.     public function setId(?string $id): self
  58.     {
  59.         $this->id $id;
  60.         return $this;
  61.     }
  62.     /**
  63.      * @return string
  64.      */
  65.     public function getName(): ?string
  66.     {
  67.         return $this->name;
  68.     }
  69.     /**
  70.      * @param string $name
  71.      *
  72.      * @return LastVisit
  73.      */
  74.     public function setName(?string $name): self
  75.     {
  76.         $this->name $name;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return string
  81.      */
  82.     public function getUrl(): string
  83.     {
  84.         return $this->url;
  85.     }
  86.     /**
  87.      * @param string $url
  88.      *
  89.      * @return LastVisit
  90.      */
  91.     public function setUrl(string $url): self
  92.     {
  93.         $this->url $url;
  94.         return $this;
  95.     }
  96.     /**
  97.      * @return string
  98.      */
  99.     public function getType(): string
  100.     {
  101.         return $this->type;
  102.     }
  103.     /**
  104.      * @param string $type
  105.      *
  106.      * @return LastVisit
  107.      */
  108.     public function setType(string $type): self
  109.     {
  110.         $this->type $type;
  111.         return $this;
  112.     }
  113.     /**
  114.      * @return string|null
  115.      */
  116.     public function getProspectId(): ?string
  117.     {
  118.         return $this->prospectId;
  119.     }
  120.     /**
  121.      * @param string|null $prospectId
  122.      *
  123.      * @return LastVisit
  124.      */
  125.     public function setProspectId(?string $prospectId): LastVisit
  126.     {
  127.         $this->prospectId $prospectId;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return string|null
  132.      */
  133.     public function getContactId(): ?string
  134.     {
  135.         return $this->contactId;
  136.     }
  137.     /**
  138.      * @param string|null $contactId
  139.      *
  140.      * @return LastVisit
  141.      */
  142.     public function setContactId(?string $contactId): LastVisit
  143.     {
  144.         $this->contactId $contactId;
  145.         return $this;
  146.     }
  147. }