public static function __set_state($array) { $instance = new Reflection($array['file']); foreach ($array as $key => $value) { $instance->{$key} = $value; } return $instance; }