| Total Complexity | 6 | 
| Total Lines | 62 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 11 | class ModifySingleResourceEvent | ||
| 12 | { | ||
| 13 | /** | ||
| 14 | * @var object | ||
| 15 | */ | ||
| 16 | private $resource; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @var string | ||
| 20 | */ | ||
| 21 | private $id; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @var RequestInterface | ||
| 25 | */ | ||
| 26 | private $request; | ||
| 27 | |||
| 28 | public function __construct(object $resource, string $id, RequestInterface $request) | ||
| 29 |     { | ||
| 30 | $this->resource = $resource; | ||
| 31 | $this->id = $id; | ||
| 32 | $this->request = $request; | ||
| 33 | } | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @return object | ||
| 37 | */ | ||
| 38 | public function getResource(): object | ||
| 39 |     { | ||
| 40 | return $this->resource; | ||
| 41 | } | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @return RequestInterface | ||
| 45 | */ | ||
| 46 | public function getRequest(): RequestInterface | ||
| 47 |     { | ||
| 48 | return $this->request; | ||
| 49 | } | ||
| 50 | |||
| 51 | /** | ||
| 52 | * @param RequestInterface $request | ||
| 53 | */ | ||
| 54 | public function setRequest(RequestInterface $request): void | ||
| 55 |     { | ||
| 56 | $this->request = $request; | ||
| 57 | } | ||
| 58 | |||
| 59 | /** | ||
| 60 | * @return string | ||
| 61 | */ | ||
| 62 | public function getId(): string | ||
| 63 |     { | ||
| 64 | return $this->id; | ||
| 65 | } | ||
| 66 | |||
| 67 | /** | ||
| 68 | * @param object $resource | ||
| 69 | */ | ||
| 70 | public function setResource(object $resource): void | ||
| 73 | } | ||
| 74 | } | ||
| 75 |