| 1 | <?php  | 
            ||
| 7 | final class AllowOriginRegex implements AllowOriginInterface  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @var string  | 
            ||
| 11 | */  | 
            ||
| 12 | private $pattern;  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @param string $pattern  | 
            ||
| 16 | */  | 
            ||
| 17 | 2 | public function __construct(string $pattern)  | 
            |
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @param string $origin  | 
            ||
| 24 | *  | 
            ||
| 25 | * @return bool  | 
            ||
| 26 | */  | 
            ||
| 27 | 2 | public function match(string $origin): bool  | 
            |
| 31 | }  | 
            ||
| 32 |