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