| 1 | <?php  | 
            ||
| 5 | class Reason  | 
            ||
| 6 | { | 
            ||
| 7 | /** @var string */  | 
            ||
| 8 | public $group;  | 
            ||
| 9 | |||
| 10 | /** @var array */  | 
            ||
| 11 | public $has;  | 
            ||
| 12 | |||
| 13 | /** @var array */  | 
            ||
| 14 | public $needs;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Reason constructor.  | 
            ||
| 18 | *  | 
            ||
| 19 | * Note that the word "group" below does not mean a group the user belongs  | 
            ||
| 20 | * to, for example, but a group of attributes required / applied  | 
            ||
| 21 | *  | 
            ||
| 22 | * @param string $group "Auth-" group that caused the problem  | 
            ||
| 23 | * @param array $has Existing attributes in that group  | 
            ||
| 24 | * @param array $needs Needed / forbidden attributes in that group  | 
            ||
| 25 | */  | 
            ||
| 26 | public function __construct(string $group, array $has, array $needs)  | 
            ||
| 32 | }  | 
            ||
| 33 |