PHP 클래스 Zumba\Swivel\Behavior

상속: implements Zumba\Swivel\BehaviorInterface, use trait Psr\Log\LoggerAwareTrait
파일 보기 프로젝트 열기: zumba/swivel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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