public function getProperties($obj) { $reflect = new \Reflectionclass($obj); if ($reflect->isInternal()) { return $obj; } $read = $this->readClosure->bindTo($obj, $obj); return $read(); }