Occurrence::get_post_id_attribute( $value )
Cast the value of the property post_id if present to an integer.
Contents
Parameters
- $value
-
(Required)
Return
(int|null)
Source
File: src/Events/Custom_Tables/V1/Models/Occurrence.php
public function get_post_id_attribute( $value ) {
return $value ? (int) $value : null;
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |