/**
  * @inheritdoc
  *
  * @SuppressWarnings(PHPMD.StaticAccess)
  */
 public function run()
 {
     /**
      * @param string $roleName
      */
     $createRole = function ($roleName) {
         (new Model([Model::FIELD_ID => Model::getRoleId($roleName), Model::FIELD_NAME => $roleName]))->saveOrFail();
     };
     $createRole(Model::ENUM_ROLE_ADMIN);
     $createRole(Model::ENUM_ROLE_USER);
 }
 /**
  * @param string $role
  *
  * @return bool
  *
  * @SuppressWarnings(PHPMD.StaticAccess)
  */
 public function hasRoleName($role)
 {
     return $this->hasRole(Role::getRoleId($role));
 }