for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\Authorization\Actions;
use App\Containers\Authorization\Tasks\DeleteRoleTask;
use App\Containers\Authorization\Tasks\GetRoleTask;
use App\Ship\Parents\Actions\Action;
/**
* Class DeleteRoleAction.
*
* @author Mahmoud Zalt <[email protected]>
*/
class DeleteRoleAction extends Action
{
* @param $roleNameOrId
* @return bool
public function run($roleNameOrId)
$role = $this->call(GetRoleTask::class, [$roleNameOrId]);
$isDeleted = $this->call(DeleteRoleTask::class, [$role]);
return $isDeleted;
}