| 1 | <?php  | 
            ||
| 19 | class HeaderFieldStrategy extends AbstractHttpStrategy  | 
            ||
| 20 | { | 
            ||
| 21 | /** @var String */  | 
            ||
| 22 | protected $field;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | 4 | * @param String $field field  | 
            |
| 26 | */  | 
            ||
| 27 | 4 | public function __construct($field)  | 
            |
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Applies the defined strategy on the provided request.  | 
            ||
| 34 | * Value may contain a coma separated string values, we use first as identifier.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param Request $request request to handle  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return string  | 
            ||
| 39 | */  | 
            ||
| 40 | public function apply(Request $request)  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Provides the list of registered roles.  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return Role[]  | 
            ||
| 49 | */  | 
            ||
| 50 | public function getRoles()  | 
            ||
| 54 | }  | 
            ||
| 55 |