Occurrence::get_event_id_attribute( $value )

Cast the value of the event ID to an integer if present, null otherwise when reading the event_id property.


Parameters

$value

(Required)


Top ↑

Return

(int|null)


Top ↑

Source

File: src/Events/Custom_Tables/V1/Models/Occurrence.php

	public function get_event_id_attribute( $value ) {
		return $value ? (int) $value : null;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.