public function initialize()
    {
        if ($this->cardinality === Cardinality::MULTIPLE) {
            $value = new MultipleContainer($this->baseType);
        } elseif ($this->cardinality === Cardinality::ORDERED) {
            $value = new OrderedContainer($this->baseType);
        } elseif ($this->cardinality === Cardinality::RECORD) {
            $value = new RecordContainer();
        } else {
            $value = null;
        }

        $this->value = $value;
    }
public function initialize()
    {
        if ($this->cardinality === Cardinality::MULTIPLE) {
            $value = new MultipleContainer($this->baseType);
        } elseif ($this->cardinality === Cardinality::ORDERED) {
            $value = new OrderedContainer($this->baseType);
        } elseif ($this->cardinality === Cardinality::RECORD) {
            $value = new RecordContainer();
        } else {
            $value = null;
        }

        $this->value = $value;
    }
public function initialize ( ) { if ( $ this -> cardinality === Cardinality :: MULTIPLE ) { $ value = new MultipleContainer ( $ this -> baseType ) ; } elseif ( $ this -> cardinality === Cardinality :: ORDERED ) { $ value = new OrderedContainer ( $ this -> baseType ) ; } elseif ( $ this -> cardinality === Cardinality :: RECORD ) { $ value = new RecordContainer ( ) ; } else { $ value = null ; } $ this -> value = $ value ; }
Initialize the variable with the appropriate default value.

* If the variable is supposed to contain a Container (Multiple, Ordered or Record cardinality), the variable's value becomes an empty container.
* If the variable is scalar (Cardinality single), the value becomes NULL.
Initialize the variable with the appropriate default value .