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.
Contents
Parameters
- $value
-
(Required)
Return
(int|null)
Source
File: src/Events/Custom_Tables/V1/Models/Occurrence.php
public function get_event_id_attribute( $value ) {
return $value ? (int) $value : null;
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |