public function __construct($object) { $this->object = $object; $this->reflection = new \ReflectionClass($object); }