Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Auth\Access\Events;
4
 
5
class GateEvaluated
6
{
7
    /**
8
     * The authenticatable model.
9
     *
10
     * @var \Illuminate\Contracts\Auth\Authenticatable|null
11
     */
12
    public $user;
13
 
14
    /**
15
     * The ability being evaluated.
16
     *
17
     * @var string
18
     */
19
    public $ability;
20
 
21
    /**
22
     * The result of the evaluation.
23
     *
24
     * @var bool|null
25
     */
26
    public $result;
27
 
28
    /**
29
     * The arguments given during evaluation.
30
     *
31
     * @var array
32
     */
33
    public $arguments;
34
 
35
    /**
36
     * Create a new event instance.
37
     *
38
     * @param  \Illuminate\Contracts\Auth\Authenticatable|null  $user
39
     * @param  string  $ability
40
     * @param  bool|null  $result
41
     * @param  array  $arguments
42
     * @return void
43
     */
44
    public function __construct($user, $ability, $result, $arguments)
45
    {
46
        $this->user = $user;
47
        $this->ability = $ability;
48
        $this->result = $result;
49
        $this->arguments = $arguments;
50
    }
51
}