Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
Exception
Overrides Constraint::matches
protected function matches(mixed $other) : bool { return $this->expectedCount === $this->getCountOf($other); }