public function setDiscriminatorValue($value) { $this->discriminatorMap[$value] = $this->name; $this->discriminatorValue = $value; }