PHP Класс Zumba\Swivel\Behavior

Наследование: implements Zumba\Swivel\BehaviorInterface, use trait Psr\Log\LoggerAwareTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$slug string E.g. "Feature.New.VersionA"
$strategy callable The strategy to be executed.

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

Метод Описание
__construct ( string $slug, callable $strategy ) Zumba\Swivel\Behavior.
execute ( array $args = [] ) : mixed Execute the behavior's callable and return the result.
getSlug ( ) : string Get the behavior's slug.

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

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

Zumba\Swivel\Behavior.
public __construct ( string $slug, callable $strategy )
$slug string
$strategy callable

execute() публичный Метод

Execute the behavior's callable and return the result.
См. также: Zumba\Swivel\BehaviorInterface
public execute ( array $args = [] ) : mixed
$args array
Результат mixed

getSlug() публичный Метод

Get the behavior's slug.
См. также: Zumba\Swivel\BehaviorInterface
public getSlug ( ) : string
Результат string

Описание свойств

$slug защищенное свойство

E.g. "Feature.New.VersionA"
protected string $slug
Результат string

$strategy защищенное свойство

The strategy to be executed.
protected callable $strategy
Результат callable