| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __construct( |
||
| 24 | $theOwner, |
||
| 25 | string $theProperty, |
||
| 26 | $atPosition, |
||
| 27 | Closure $setter = null |
||
| 28 | ) { |
||
| 29 | $this->owner = $theOwner; |
||
| 30 | $this->propertyShouldReference = $theProperty; |
||
| 31 | $this->atPosition = $atPosition; |
||
| 32 | $this->setter = $setter ?: function (string $property, $value, $position) : void |
||
| 33 | { |
||
| 34 | $this->$property[$position] = $value; |
||
| 35 | }; |
||
| 56 |