count = $count; } /** * @param mixed $value Value to match. * * @return boolean */ public function match($value) { if (! is_array($value)) { return false; } if ($this->count instanceof PatternExpander) { return $this->count->match(count($value)); } return count($value) === $this->count; } }