src/ViKon/Auth/AuthSeederTrait.php
protected function newPermissionModel($token, array $options = [])
    {
        $permission        = new Permission();
        $permission->token = $token;

        foreach ($options as $key => $value) {
            $permission->{$key} = $value;
        }

        return $permission;
    }
protected function newPermissionModel($token, array $options = [])
    {
        $permission        = new Permission();
        $permission->token = $token;

        foreach ($options as $key => $value) {
            $permission->{$key} = $value;
        }

        return $permission;
    }
protected function newPermissionModel ( $ token , array $ options = [ ] ) { $ permission = new Permission ( ) ; $ permission -> token = $ token ; foreach ( $ options as $ key => $ value ) { $ permission -> { $ key } = $ value ; } return $ permission ; }
Create new permission model instance

@param string $token
@param array  $options

@return \ViKon\Auth\Model\Permission
Create new permission model instance