src/Verification/Cardinality.php
public function matches($count, int $maximumCount): bool
    {
        $count = intval($count);
        $result = true;

        if ($count < $this->minimum) {
            $result = false;
        }

        if ($this->maximum >= 0 && $count > $this->maximum) {
            $result = false;
        }

        if ($this->isAlways && $count < $maximumCount) {
            $result = false;
        }

        return $result;
    }
public function matches($count, int $maximumCount): bool
    {
        $count = intval($count);
        $result = true;

        if ($count < $this->minimum) {
            $result = false;
        }

        if ($this->maximum >= 0 && $count > $this->maximum) {
            $result = false;
        }

        if ($this->isAlways && $count < $maximumCount) {
            $result = false;
        }

        return $result;
    }
public function matches ( $ count , int $ maximumCount ) : bool { $ count = intval ( $ count ) ; $ result = true ; if ( $ count < $ this -> minimum ) { $ result = false ; } if ( $ this -> maximum >= 0 && $ count > $ this -> maximum ) { $ result = false ; } if ( $ this -> isAlways && $ count < $ maximumCount ) { $ result = false ; } return $ result ; }
Returns true if the supplied count matches this cardinality.

@param int|bool $count        The count or result to check.
@param int      $maximumCount The maximum possible count.

@return bool True if the supplied count matches this cardinality.
Returns true if the supplied count matches this cardinality .