<?php
namespace App\Model\LastVisit;
use App\Model\Traits\ImportableObjectTrait;
use App\Model\Traits\TimestampableTrait;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
class LastVisit
{
use TimestampableTrait;
use ImportableObjectTrait;
/**
* @var string
* @Groups({"list_last_visit", "post_last_visit"})
*/
private $id;
/**
* @var string|null
* @Assert\NotNull()
* @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
*/
private $name;
/**
* @var string
* @Assert\NotNull()
* @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
*/
private $url;
/**
* @var string|null
* @Assert\NotNull()
* @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
*/
private $prospectId;
/**
* @var string|null
* @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
*/
private $contactId;
/**
* @var string
* @Assert\NotNull()
* @Groups({"list_last_visit", "read_last_visit", "post_last_visit"})
*/
private $type;
/**
* @return string|null
*/
public function getId(): ?string
{
return $this->id;
}
/**
* @param string $id
*
* @return LastVisit
*/
public function setId(?string $id): self
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string $name
*
* @return LastVisit
*/
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
/**
* @return string
*/
public function getUrl(): string
{
return $this->url;
}
/**
* @param string $url
*
* @return LastVisit
*/
public function setUrl(string $url): self
{
$this->url = $url;
return $this;
}
/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
/**
* @param string $type
*
* @return LastVisit
*/
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
/**
* @return string|null
*/
public function getProspectId(): ?string
{
return $this->prospectId;
}
/**
* @param string|null $prospectId
*
* @return LastVisit
*/
public function setProspectId(?string $prospectId): LastVisit
{
$this->prospectId = $prospectId;
return $this;
}
/**
* @return string|null
*/
public function getContactId(): ?string
{
return $this->contactId;
}
/**
* @param string|null $contactId
*
* @return LastVisit
*/
public function setContactId(?string $contactId): LastVisit
{
$this->contactId = $contactId;
return $this;
}
}