getFullName() public static method

Returns the full brand name for the given short name
public static getFullName ( string $brandId ) : string
$brandId string short brand name
return string
コード例 #1
0
 /**
  * Returns the full device brand name extracted from the parsed UA
  *
  * @see self::$deviceBrand for available device brands
  *
  * @return string
  */
 public function getBrandName()
 {
     return DeviceParserAbstract::getFullName($this->getBrand());
 }
コード例 #2
0
 public function testGetFullName()
 {
     $this->assertEquals('', DeviceParserAbstract::getFullName('Invalid'));
     $this->assertEquals('Unknown', DeviceParserAbstract::getFullName('XX'));
     $this->assertEquals('Google', DeviceParserAbstract::getFullName('GO'));
 }