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