Lines Matching refs:value
38 $value = $this->getValue();
43 return $this->toPersistentDateTimeUtility($value);
51 * @param DateTime|null $value
54 public function setValue($value): Metadata argument
56 if ($value === null) {
60 if (!($value instanceof DateTime)) {
61 … throw new ExceptionRuntime("The value is not a date time. Value: " . var_export($value, true));
63 $this->dateTimeValue = $value;
70 public function setFromStoreValue($value): Metadata argument
72 return $this->setValue($this->fromPersistentDateTimeUtility($value));
102 $value = $this->getReadStore()->get($this);
104 $this->dateTimeValue = $this->fromPersistentDateTimeUtility($value);
115 protected function fromPersistentDateTimeUtility($value) argument
117 if ($value === null || $value === "") {
120 if (!is_string($value)) {
123 return Iso8601Date::createFromString($value)->getDateTime();
142 private function toPersistentDateTimeUtility($value): string argument
144 if ($value === null) {
147 if (!($value instanceof DateTime)) {
150 return Iso8601Date::createFromDateTime($value)->toString();
163 public function setFromStoreValueWithoutException($value): Metadata argument
166 $this->dateTimeValue = $this->fromPersistentDateTimeUtility($value);