<?php
namespace App\Entity\Messaging;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\App\Messaging\ContractTypeTeamRepository")
*/
class ContractTypeTeam
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string")
* @Assert\NotBlank
*/
protected $contractTypeCode;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Messaging\Team")
* @ORM\JoinColumn(nullable=true)
*/
protected $team;
public function __construct(string $contractTypeCode)
{
$this->contractTypeCode = $contractTypeCode;
}
public function getId(): ?int
{
return $this->id;
}
public function getContractTypeCode(): string
{
return $this->contractTypeCode;
}
public function setContractTypeCode(string $contractTypeCode): self
{
$this->contractTypeCode = $contractTypeCode;
return $this;
}
public function getTeam(): ?Team
{
return $this->team;
}
public function setTeam(?Team $team): self
{
$this->team = $team;
return $this;
}
}