Skip to content

BehaviorInterface


  • Full name: \PhalconKit\Mvc\Controller\Traits\Interfaces\BehaviorInterface

Methods

attachBehavior

public attachBehavior(string $eventClass, ?string $eventType = null, ?int $priority = null): void

Parameters:

Parameter Type Description
$eventClass string
$eventType ?string
$priority ?int

attachBehaviors

public attachBehaviors(array $behaviors = [], ?string $eventType = null, ?int $priority = null): void

Parameters:

Parameter Type Description
$behaviors array
$eventType ?string
$priority ?int