for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://flipboxfactory.com/software/patron/license
* @link https://www.flipboxfactory.com/software/patron/
*/
namespace flipbox\patron\records\traits;
use flipbox\ember\helpers\ModelHelper;
use flipbox\patron\records\Token;
* @property int|null $tokenId
* @property Token|null $token
*
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
trait TokenRules
{
* @return array
protected function tokenRules(): array
return [
[
'tokenId'
],
'number',
'integerOnly' => true
'tokenId',
'token'
'safe',
'on' => [
ModelHelper::SCENARIO_DEFAULT
]
];
}