Browscap\Data\DataCollection::getDefaultProperties PHP Method

getDefaultProperties() public method

Get the divisions array containing UA data
public getDefaultProperties ( ) : Division
return Division
    public function getDefaultProperties()
    {
        return $this->defaultProperties;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * checks if the default properties are added sucessfully
  *
  * @group data
  * @group sourcetest
  */
 public function testAddDefaultProperties()
 {
     self::assertSame($this->object, $this->object->addDefaultProperties(__DIR__ . '/../../fixtures/ua/default-properties.json'));
     $division = $this->object->getDefaultProperties();
     self::assertInstanceOf('\\Browscap\\Data\\Division', $division);
     self::assertSame('DefaultProperties', $division->getName());
 }
All Usage Examples Of Browscap\Data\DataCollection::getDefaultProperties