You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pokhodyun Alexander edited this page Aug 20, 2016
·
1 revision
Definition
Definition class contains check logic, getter and setter methods for chain call.
Example for add custom method definition
use Emerap\Ra\Base\DefinitionBase;
use Emerap\Ra\RaConfig;
class TestCustomDefinition extends DefinitionBase {
/**
* @inheritdoc
*/
public function getMethodName() {
return 'test.custom';
}
/**
* @inheritdoc
*/
public function execute($params) {
// Any logic, return mixed | \Emerap\Ra\Core\Error
}
/**
* @inheritdoc
*/
public function getDescription() {
return 'Description for test.custom definition';
}
}