| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class JobDescription |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | * @ORM\Column(type="string") |
||
| 13 | */ |
||
| 14 | private $title; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | * @ORM\Column(type="string") |
||
| 19 | */ |
||
| 20 | private $description; |
||
| 21 | |||
| 22 | private function __construct(string $title, string $description) |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function create(string $title, string $description): JobDescription |
||
| 29 | { |
||
| 30 | return new JobDescription($title, $description); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function equals(JobDescription $other): bool |
||
| 37 | } |
||
| 38 | } |