PHP Класс Psr7Middlewares\Middleware\Piwik

Наследование: use trait Psr7Middlewares\Utils\HtmlInjectorTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $piwikUrl = null ) Constructor.Set the Piwik's url.
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
addOption ( ) : self Add an option.
piwikUrl ( string $url ) : self Set the piwik url.
siteId ( integer $siteId ) : self Set the site's id.

Приватные методы

Метод Описание
getCode ( ) : string Returns the piwik code.

Описание методов

__construct() публичный метод

Constructor.Set the Piwik's url.
public __construct ( string $piwikUrl = null )
$piwikUrl string

__invoke() публичный метод

Execute the middleware.
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
Результат Psr\Http\Message\ResponseInterface

addOption() публичный метод

...
public addOption ( ) : self
Результат self

piwikUrl() публичный метод

Set the piwik url.
public piwikUrl ( string $url ) : self
$url string
Результат self

siteId() публичный метод

Set the site's id.
public siteId ( integer $siteId ) : self
$siteId integer
Результат self