| 1 | <?php |
||
| 17 | class UserRole extends Entity |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | * |
||
| 23 | * @ORM\Column(name="roles", type="json_array", nullable=false) |
||
| 24 | */ |
||
| 25 | protected $role; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * RoleUser constructor. |
||
| 29 | * @param array $roles |
||
| 30 | */ |
||
| 31 | public function __construct($roles) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getRole() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param array $role |
||
| 46 | */ |
||
| 47 | public function setRole($role) |
||
| 51 | |||
| 52 | } |
||
|
|
|||
| 53 |
This check marks files that end in a newline character, i.e. an empy line.