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/organization/license
* @link https://www.flipboxfactory.com/software/organization/
*/
namespace flipbox\organizations\actions\users;
use flipbox\craft\ember\actions\records\CreateRecord;
use flipbox\organizations\records\UserType;
use yii\db\ActiveRecord;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
class CreateUserType extends CreateRecord
{
* @inheritdoc
public $validBodyParams = [
'name',
'handle'
];
* @return UserType
protected function newRecord(array $config = []): ActiveRecord
$record = new UserType();
$record->setAttributes($config);
return $record;
}