Prado\Web\THttpRequest::offsetExists PHP Method

offsetExists() public method

This method is required by the interface \ArrayAccess.
public offsetExists ( $offset ) : boolean
return boolean
    public function offsetExists($offset)
    {
        return $this->contains($offset);
    }

Usage Example

Ejemplo n.º 1
0
 public function testOffsetExists()
 {
     $request = new THttpRequest();
     $request->init(null);
     // should not exists
     self::assertFalse($request->offsetExists(0));
 }