PHPSpec2\Matcher\MatchersCollection::getAll PHP Method

getAll() public method

public getAll ( )
    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;
    }
MatchersCollection