Occurrence::get_updated_at_attribute()
Returns the Model instance updated_at attribute in string format.
This method will be internally called when trying to access the updated_at property of the Model instance.
Return
(string) The Model instance updated_at attribute in string format.
Source
File: src/Events/Custom_Tables/V1/Models/Occurrence.php
public function get_updated_at_attribute() {
return $this->data['updated_at'] instanceof DateTimeInterface ?
$this->data['updated_at']->format( Dates::DBDATETIMEFORMAT )
: $this->data['updated_at'];
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |