public function setCardinality($cardinality)
    {
        if (in_array($cardinality, Cardinality::asArray())) {
            $this->cardinality = $cardinality;
        } else {
            $msg = "The cardinality must be a value from the Cardinality enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }