CodeExplorer sortByAccess example
$o->
addRepresentation($statics);
} private static function sort(Value
$a, Value
$b): int
{ $sort =
((int) $a->const
) -
((int) $b->const
);
if ($sort) { return $sort;
} $sort = Value::
sortByAccess($a,
$b);
if ($sort) { return $sort;
} return InstanceValue::
sortByHierarchy($a->owner_class,
$b->owner_class
);
}} $o->
addRepresentation($rep);
} } private static function sort(MethodValue
$a, MethodValue
$b): int
{ $sort =
((int) $a->static
) -
((int) $b->static
);
if ($sort) { return $sort;
} $sort = Value::
sortByAccess($a,
$b);
if ($sort) { return $sort;
} $sort = InstanceValue::
sortByHierarchy($a->owner_class,
$b->owner_class
);
if ($sort) { return $sort;
} return $a->startline -
$b->startline;
}} foreach ($hints as $key) { if (isset($plugins[$key])) { $out[$key] =
$plugins[$key];
} } return $out;
} public static function sortPropertiesFull(Value
$a, Value
$b): int
{ $sort = Value::
sortByAccess($a,
$b);
if ($sort) { return $sort;
} $sort = Value::
sortByName($a,
$b);
if ($sort) { return $sort;
} return InstanceValue::
sortByHierarchy($a->owner_class,
$b->owner_class
);
}