WsdlToPhp\PackageGenerator\Model\Struct::addValue PHP Method

addValue() public method

Adds value to values array
public addValue ( mixed $value ) : Struct
$value mixed the original value
return Struct
    public function addValue($value)
    {
        if ($this->getValue($value) === null) {
            $this->values->add(new StructValue($this->getGenerator(), $value, $this->getValues()->count(), $this));
            $this->setIsRestriction(true);
            $this->setIsStruct(true);
        }
        return $this;
    }