1 | <?php namespace Anomaly\Streams\Platform\Entry; |
||
26 | class EntryObserver extends Observer |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Run before a record is created. |
||
31 | * |
||
32 | * @param EntryInterface $entry |
||
33 | */ |
||
34 | public function creating(EntryInterface $entry) |
||
38 | |||
39 | /** |
||
40 | * Run after a record is created. |
||
41 | * |
||
42 | * @param EntryInterface $entry |
||
43 | */ |
||
44 | public function created(EntryInterface $entry) |
||
50 | |||
51 | /** |
||
52 | * Run before a record is updated. |
||
53 | * |
||
54 | * @param EntryInterface $entry |
||
55 | */ |
||
56 | public function updating(EntryInterface $entry) |
||
60 | |||
61 | /** |
||
62 | * Run after a record is updated. |
||
63 | * |
||
64 | * @param EntryInterface $entry |
||
65 | */ |
||
66 | public function updated(EntryInterface $entry) |
||
72 | |||
73 | /** |
||
74 | * Run after multiple entries have been updated. |
||
75 | * |
||
76 | * @param EntryInterface $entry |
||
77 | */ |
||
78 | public function updatedMultiple(EntryInterface $entry) |
||
84 | |||
85 | /** |
||
86 | * Before saving an entry touch the |
||
87 | * meta information. |
||
88 | * |
||
89 | * @param EntryInterface $entry |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function saving(EntryInterface $entry) |
||
100 | |||
101 | /** |
||
102 | * Run after saving a record. |
||
103 | * |
||
104 | * @param EntryInterface $entry |
||
105 | */ |
||
106 | public function saved(EntryInterface $entry) |
||
113 | |||
114 | /** |
||
115 | * Run before a record is deleted. |
||
116 | * |
||
117 | * @param EntryInterface|EloquentModel $entry |
||
118 | * @return bool |
||
119 | */ |
||
120 | public function deleting(EntryInterface $entry) |
||
126 | |||
127 | /** |
||
128 | * Run after a record has been deleted. |
||
129 | * |
||
130 | * @param EntryInterface $entry |
||
131 | */ |
||
132 | public function deleted(EntryInterface $entry) |
||
141 | |||
142 | /** |
||
143 | * Run after entries records have been deleted. |
||
144 | * |
||
145 | * @param EntryInterface $entry |
||
146 | */ |
||
147 | public function deletedMultiple(EntryInterface $entry) |
||
153 | |||
154 | /** |
||
155 | * Fired just before restoring. |
||
156 | * |
||
157 | * @param EntryInterface|EloquentModel $entry |
||
158 | */ |
||
159 | public function restoring(EntryInterface $entry) |
||
163 | |||
164 | /** |
||
165 | * Run after a record has been restored. |
||
166 | * |
||
167 | * @param EntryInterface|EloquentModel $entry |
||
168 | */ |
||
169 | public function restored(EntryInterface $entry) |
||
178 | } |
||
179 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.