8889841cwp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/Models/Model_Date_Attributes.php000064400000004747150506714140035222 0ustar00home/clixcotz/tcchp.clix.co.tzdata['start_date'] instanceof DateTimeInterface ? $this->data['start_date']->format( Dates::DBDATETIMEFORMAT ) : $this->data['start_date']; } /** * Returns the Model instance `start_date_utc` attribute in string format. * * This method will be internally called when trying to access the `start_date_utc` * property of the Model instance. * * @since 6.0.0 * * @return string The Model instance `start_date_utc` attribute in string format. */ public function get_start_date_utc_attribute() { return $this->data['start_date_utc'] instanceof DateTimeInterface ? $this->data['start_date_utc']->format( Dates::DBDATETIMEFORMAT ) : $this->data['start_date_utc']; } /** * Returns the Model instance `end_date` attribute in string format. * * This method will be internally called when trying to access the `end_date` * property of the Model instance. * * @since 6.0.0 * * @return string The Model instance `end_date` attribute in string format. */ public function get_end_date_attribute() { return $this->data['end_date'] instanceof DateTimeInterface ? $this->data['end_date']->format( Dates::DBDATETIMEFORMAT ) : $this->data['end_date']; } /** * Returns the Model instance `end_date_utc` attribute in string format. * * This method will be internally called when trying to access the `end_date_utc` * property of the Model instance. * * @since 6.0.0 * * @return string The Model instance `end_date_utc` attribute in string format. */ public function get_end_date_utc_attribute() { return $this->data['end_date_utc'] instanceof DateTimeInterface ? $this->data['end_date_utc']->format( Dates::DBDATETIMEFORMAT ) : $this->data['end_date_utc']; } }