BehaviorInterface
- Full name:
\PhalconKit\Mvc\Model\Interfaces\BehaviorInterface
Methods
addBehavior
public addBehavior(\Phalcon\Mvc\Model\BehaviorInterface $behavior): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$behavior | \Phalcon\Mvc\Model\BehaviorInterface |
getBehavior
public getBehavior(string $behaviorName): ?\Phalcon\Mvc\Model\BehaviorInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$behaviorName | string |
setBehavior
public setBehavior(string $behaviorName, \Phalcon\Mvc\Model\BehaviorInterface $behavior): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$behaviorName | string | |
$behavior | \Phalcon\Mvc\Model\BehaviorInterface |
hasBehavior
public hasBehavior(string $behaviorName): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$behaviorName | string |
removeBehavior
public removeBehavior(string $behaviorName): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$behaviorName | string |