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