Browscap\Formatter\JsonFormatter::getType PHP Méthode

getType() public méthode

returns the Type of the formatter
public getType ( ) : string
Résultat 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());
 }