22 lines
469 B
PHP
22 lines
469 B
PHP
<?php
|
|
|
|
namespace App\Libraries;
|
|
|
|
use App\Libraries\AuthContext;
|
|
|
|
class OperationContext
|
|
{
|
|
public string $action;
|
|
public AuthContext $auth;
|
|
public array $datas;
|
|
public array $pipelineDatas = []; // 파이프라인 단계별 데이터를 저장할 공간
|
|
public ?\Throwable $error = null;
|
|
|
|
public function __construct(string $action, array $datas, AuthContext $auth)
|
|
{
|
|
$this->action = $action;
|
|
$this->auth = $auth;
|
|
$this->datas = $datas;
|
|
}
|
|
}
|