/** * Get all attributes of the widget. * * @param \Widget $widget The widget. * * @return array */ public static function getAttributes($widget) { return Spy::spyAttributes($widget); }