1 | <?php |
||
10 | class Event |
||
11 | { |
||
12 | /** @var Google_Service_Calendar_Event*/ |
||
13 | public $googleEvent; |
||
14 | |||
15 | /** @var int */ |
||
16 | protected $calendarId; |
||
17 | |||
18 | public static function createFromGoogleCalendarEvent(Google_Service_Calendar_Event $googleEvent, $calendarId) |
||
28 | |||
29 | public static function create(array $properties, $calendarId = null) |
||
41 | |||
42 | public function __construct() |
||
46 | |||
47 | public function __get($name) |
||
63 | |||
64 | public function __set($name, $value) |
||
76 | |||
77 | /** |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function exists() |
||
84 | |||
85 | /** |
||
86 | * @return bool |
||
87 | */ |
||
88 | public function isAllDayEvent() |
||
92 | |||
93 | public static function get(Carbon $startDateTime = null, Carbon $endDateTime = null, $queryParameters = [], $calendarId = null) |
||
99 | |||
100 | /** |
||
101 | * @param string $id |
||
102 | * @param string $calendarId |
||
103 | * |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public static function find($id, $calendarId = null) |
||
112 | |||
113 | /** |
||
114 | * @return mixed |
||
115 | */ |
||
116 | public function save() |
||
122 | |||
123 | /** |
||
124 | * @param string $id |
||
125 | * |
||
126 | * @return mixed |
||
127 | */ |
||
128 | public function delete($id = null) |
||
132 | |||
133 | /** |
||
134 | * @param string $calendarId |
||
135 | * |
||
136 | * @return \Spatie\GoogleCalendar\GoogleCalendar |
||
137 | */ |
||
138 | protected static function getGoogleCalendar($calendarId = null) : GoogleCalendar |
||
144 | |||
145 | /** |
||
146 | * @param string $name |
||
147 | * @param \Carbon\Carbon $date |
||
148 | */ |
||
149 | protected function setDateProperty($name, Carbon $date) |
||
169 | |||
170 | /** |
||
171 | * @param $name |
||
172 | * |
||
173 | * @return string |
||
174 | */ |
||
175 | protected function translateFieldName($name) |
||
199 | } |
||
200 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.