setValue($value); $this->setExternalId($externalId); } /** * Gets the keys for all the properties of this object. * * @return array */ public function getPropertyKeys() { return ['externalId', 'value']; } /** * Gets the value of the entry. * * @return string */ public function getValue() { return $this->value; } /** * Sets the value of the entry. * * @param string $value */ public function setValue($value) { if (is_null($value)) { throw new InvalidArgumentException('Metadata data entry value is not valid'); } $this->value = $value; } /** * Gets the ID of the entry. * * @return string */ public function getExternalId() { return $this->externalId; } /** * Sets the ID of the entry. Will be auto-generated if left blank. * * @param string $externalId */ public function setExternalId($externalId) { $this->externalId = $externalId; } }