| 1 | <?php  | 
            ||
| 11 | class OldInput { | 
            ||
| 12 | /**  | 
            ||
| 13 | * Flash service.  | 
            ||
| 14 | *  | 
            ||
| 15 | * @var Flash  | 
            ||
| 16 | */  | 
            ||
| 17 | protected $flash = null;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Key to store the flashed data with.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @var string  | 
            ||
| 23 | */  | 
            ||
| 24 | 2 | protected $flash_key = '';  | 
            |
| 25 | 2 | ||
| 26 | /**  | 
            ||
| 27 | * Constructor.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @codeCoverageIgnore  | 
            ||
| 30 | * @param Flash $flash  | 
            ||
| 31 | * @param string $flash_key  | 
            ||
| 32 | */  | 
            ||
| 33 | 2 | 	public function __construct( Flash $flash, $flash_key = '__wpemergeOldInput' ) { | 
            |
| 37 | 2 | ||
| 38 | /**  | 
            ||
| 39 | * Get whether the old input service is enabled.  | 
            ||
| 40 | *  | 
            ||
| 41 | * @return boolean.  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 42 | */  | 
            ||
| 43 | 1 | 	public function enabled() { | 
            |
| 46 | |||
| 47 | /**  | 
            ||
| 48 | * Get request value for key from the previous request.  | 
            ||
| 49 | *  | 
            ||
| 50 | 1 | * @param string $key  | 
            |
| 51 | 1 | * @param mixed $default  | 
            |
| 52 | * @return mixed  | 
            ||
| 53 | */  | 
            ||
| 54 | 	public function get( $key, $default = null ) { | 
            ||
| 57 | |||
| 58 | 1 | /**  | 
            |
| 59 | * Set input for the next request.  | 
            ||
| 60 | *  | 
            ||
| 61 | * @param array $input  | 
            ||
| 62 | */  | 
            ||
| 63 | 	public function set( $input ) { | 
            ||
| 66 | 1 | ||
| 67 | /**  | 
            ||
| 68 | * Clear input for the next request.  | 
            ||
| 69 | *  | 
            ||
| 70 | * @return void  | 
            ||
| 71 | */  | 
            ||
| 72 | 	public function clear() { | 
            ||
| 75 | }  | 
            ||
| 76 | 
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.