| 1 | <?php |
||
| 7 | class LazyAttribute implements AttributeInterface |
||
| 8 | { |
||
| 9 | /** @var callable */ |
||
| 10 | protected $handler; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param callable $handler |
||
| 14 | */ |
||
| 15 | 2 | public function __construct(callable $handler) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | 2 | public function getAttribute(ServerRequestInterface $request) |
|
| 27 | } |
||
| 28 |