| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function __construct( |
||
| 38 | string $serializedKey, |
||
| 39 | ?string $attributeName = null, |
||
| 40 | ?string $type = null, |
||
| 41 | bool $isIdentifier = false |
||
| 42 | ) { |
||
| 43 | if (empty($serializedKey)) { |
||
| 44 | throw new \InvalidArgumentException('attribute name must be set'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->serializedKey = $serializedKey; |
||
| 48 | $this->attributeName = $attributeName ?? $this->serializedKey; |
||
| 49 | $this->type = $type ?? 'string'; |
||
| 50 | $this->isIdentifier = $isIdentifier; |
||
| 51 | } |
||
| 101 |