*/ final class ThreadRunStepResponseCodeInterpreterOutputLogs implements ResponseContract { /** * @use ArrayAccessible */ use ArrayAccessible; use Fakeable; private function __construct( public string $type, public string $logs, ) { } /** * Acts as static factory, and returns a new Response instance. * * @param array{type: 'logs', logs: string} $attributes */ public static function from(array $attributes): self { return new self( $attributes['type'], $attributes['logs'], ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'type' => $this->type, 'logs' => $this->logs, ]; } }