1 | <?php |
||
14 | class LogHandler implements ActivityLogHandlerInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @param \Illuminate\Database\Eloquent\Model $performOn |
||
19 | * @param \Illuminate\Database\Eloquent\Model $causerBy |
||
20 | * @param array $properties |
||
21 | * @param $logName |
||
22 | * @param string $description |
||
23 | * @return mixed |
||
24 | */ |
||
25 | function log($performOn, $causerBy, $properties = [], $logName, $description) |
||
33 | |||
34 | /** |
||
35 | * @param $maxAgeInMonth |
||
36 | * @return boolean |
||
37 | */ |
||
38 | function cleanLog($maxAgeInMonth) |
||
42 | } |
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.