| Total Complexity | 5 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | class GraphiQLTokenMiddleware  | 
            ||
| 14 | { | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var boolean  | 
            ||
| 18 | */  | 
            ||
| 19 | private $enableGraphiql;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @var string|null  | 
            ||
| 23 | */  | 
            ||
| 24 | private $graphiqlToken;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * GraphiQLTokenMiddleware constructor.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @param bool $enableGraphiql  | 
            ||
| 30 | * @param string|null $graphiqlToken  | 
            ||
| 31 | */  | 
            ||
| 32 | public function __construct($enableGraphiql, $graphiqlToken)  | 
            ||
| 33 |     { | 
            ||
| 34 | $this->enableGraphiql = $enableGraphiql;  | 
            ||
| 35 | $this->graphiqlToken = $graphiqlToken;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @inheritDoc  | 
            ||
| 40 | * @throws NotFoundHttpException if the interface is not enabled  | 
            ||
| 41 | */  | 
            ||
| 42 | public function handle(Request $request, Closure $next)  | 
            ||
| 50 | }  | 
            ||
| 51 | }  | 
            ||
| 52 |