| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | 10 | public function __construct( |
|
| 50 | string $entityClass, |
||
| 51 | string $entityId = null, |
||
| 52 | $entity = null, |
||
| 53 | string $method = null, |
||
| 54 | array $arguments = array() |
||
| 55 | ) { |
||
| 56 | 10 | Assert::true(class_exists($entityClass)); |
|
| 57 | 10 | Assert::true(is_object($entity) || is_null($entity)); |
|
| 58 | |||
| 59 | 10 | $this->entityClass = $entityClass; |
|
| 60 | 10 | $this->entityId = $entityId; |
|
| 61 | 10 | $this->entity = $entity; |
|
| 62 | 10 | $this->method = $method; |
|
| 63 | 10 | $this->arguments = $arguments; |
|
| 64 | 10 | } |
|
| 65 | |||
| 95 |