1 | <?php |
||
17 | class UserRole implements TimestampInterface |
||
18 | { |
||
19 | use \Starkerxp\StructureBundle\Entity\IdTrait; |
||
20 | use \Starkerxp\StructureBundle\Entity\TimestampTrait; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | * |
||
25 | * @ORM\Column(name="roles", type="json_array", nullable=false) |
||
26 | */ |
||
27 | protected $role; |
||
28 | |||
29 | /** |
||
30 | * RoleUser constructor. |
||
31 | * @param array $roles |
||
32 | */ |
||
33 | public function __construct($roles) |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getRole() |
||
45 | |||
46 | /** |
||
47 | * @param array $role |
||
48 | */ |
||
49 | public function setRole($role) |
||
53 | |||
54 | } |
||
|
|||
55 |
This check marks files that end in a newline character, i.e. an empy line.