<?php interface ReceiveSomething { public int $target { set; } } class foo implements ReceiveSomething { public int $target; public function __construct() { echo $this->target; } } // emulate new instance $x = new ReflectionClass(foo::class); $instance = $x->newinstancewithoutconstructor(); $instance->target = 1; $instance->__construct();
You have javascript disabled. You will not be able to edit any code.