1 | <?php |
||
17 | class EloquentHandler implements ActivityLogHandlerInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @param \Illuminate\Database\Eloquent\Model $performOn |
||
22 | * @param \Illuminate\Database\Eloquent\Model $causerBy |
||
23 | * @param array $properties |
||
24 | * @param $logName |
||
25 | * @param string $description |
||
26 | * @return mixed |
||
27 | */ |
||
28 | function log($performOn, $causerBy, $properties = [], $logName, $description) |
||
48 | |||
49 | /** |
||
50 | * @param $maxAgeInDays |
||
51 | * @return bool |
||
52 | * @throws \Exception |
||
53 | */ |
||
54 | function cleanLog($maxAgeInDays) |
||
60 | |||
61 | /** |
||
62 | * @return Model |
||
63 | * @throws InvalidConfiguration |
||
64 | */ |
||
65 | public function determineActivityModel() |
||
73 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.