flight\Engine::has PHP Method

has() public method

Checks if a variable has been set.
public has ( string $key ) : boolean
$key string Key
return boolean Variable status
    public function has($key)
    {
        return isset($this->vars[$key]);
    }

Usage Example

Beispiel #1
0
 function testHas()
 {
     $this->app->set('d', 1);
     $this->assertTrue($this->app->has('d'));
 }