public function getAll()
{
if (!$this->sorted) {
usort($this->matchers, function ($matcher1, $matcher2) {
if ($matcher1->getPriority() === $matcher2->getPriority()) {
return 0;
}
return $matcher1->getPriority() > $matcher2->getPriority() ? -1 : 1;
});
$this->sorted = true;
}
return $this->matchers;
}