FreelancerAppliedForJob   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getJobId() 0 3 1
A getFreelancerId() 0 3 1
1
<?php
2
3
namespace App\Domain\Events\Freelancer;
4
5
use Ramsey\Uuid\UuidInterface;
6
7
final class FreelancerAppliedForJob
8
{
9
    /** @var \Ramsey\Uuid\UuidInterface */
10
    private $freelancerId;
11
12
    /** @var \Ramsey\Uuid\UuidInterface */
13
    private $jobId;
14
15
    public function __construct(UuidInterface $freelancerId, UuidInterface $jobId)
16
    {
17
        $this->freelancerId = $freelancerId;
18
        $this->jobId = $jobId;
19
    }
20
21
    public function getFreelancerId(): UuidInterface
22
    {
23
        return $this->freelancerId;
24
    }
25
26
    public function getJobId(): UuidInterface
27
    {
28
        return $this->jobId;
29
    }
30
}