public function match($actual)
    {
        if (is_string($actual)) {
            $this->type = 'string';
            $this->actual = strlen($actual);
        } elseif (is_array($actual)) {
            $this->type = 'array';
            $this->actual = count($actual);
        } else {
            throw new \Exception('LengthMatcher::match() requires an array or string');
        }

        return ($this->actual === $this->expected);
    }