REBELinBLUE\Deployer\Events\ServerLogChanged::__construct PHP Метод

__construct() публичный Метод

ServerLogChanged constructor.
public __construct ( ServerLog $log )
$log REBELinBLUE\Deployer\ServerLog
    public function __construct(ServerLog $log)
    {
        $this->status = $log->status;
        $this->started_at = $log->started_at ? $log->started_at->toDateTimeString() : null;
        $this->finished_at = $log->finished_at ? $log->finished_at->toDateTimeString() : null;
        $this->log_id = $log->id;
        $this->output = is_null($log->output) || !strlen($log->output) ? null : '';
        $this->runtime = $log->runtime() === false ? null : $log->getPresenter()->readable_runtime;
    }