Browscap\Formatter\JsonFormatter::getType PHP Method

getType() public method

returns the Type of the formatter
public getType ( ) : string
return string
    public function getType()
    {
        return 'json';
    }

Usage Example

 /**
  * tests getter for the formatter type
  *
  * @group formatter
  * @group sourcetest
  */
 public function testGetType()
 {
     self::assertSame('json', $this->object->getType());
 }