PHP 인터페이스 BrowscapPHP\Parser\ParserInterface

저자: Christoph Ziegenberg ([email protected])
저자: Thomas Müller ([email protected])
파일 보기 프로젝트 열기: browscap/browscap-php

공개 메소드들

메소드 설명
__construct ( BrowscapPHP\Parser\Helper\GetPatternInterface $patternHelper, BrowscapPHP\Parser\Helper\GetDataInterface $dataHelper, BrowscapPHP\Formatter\FormatterInterface $formatter ) class constructor
getBrowser ( string $userAgent ) : BrowscapPHP\Formatter\FormatterInterface | null Gets the browser data formatr for the given user agent (or null if no data avaailble, no even the default browser)

메소드 상세

__construct() 공개 메소드

class constructor
public __construct ( BrowscapPHP\Parser\Helper\GetPatternInterface $patternHelper, BrowscapPHP\Parser\Helper\GetDataInterface $dataHelper, BrowscapPHP\Formatter\FormatterInterface $formatter )
$patternHelper BrowscapPHP\Parser\Helper\GetPatternInterface
$dataHelper BrowscapPHP\Parser\Helper\GetDataInterface
$formatter BrowscapPHP\Formatter\FormatterInterface

getBrowser() 공개 메소드

Gets the browser data formatr for the given user agent (or null if no data avaailble, no even the default browser)
public getBrowser ( string $userAgent ) : BrowscapPHP\Formatter\FormatterInterface | null
$userAgent string
리턴 BrowscapPHP\Formatter\FormatterInterface | null