Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace PowerComponents\LivewirePowerGrid; use Livewire\Wireable; final class E..
Decoded Output download
<?php
namespace PowerComponents\LivewirePowerGrid;
use Livewire\Wireable;
final class Exportable implements Wireable
{
public const TYPE_XLS = 'xlsx';
public const TYPE_CSV = 'csv';
public string $name = 'exportable';
public string $csvSeparator = ',';
public string $csvDelimiter = '"';
public array $type = [];
public string $striped = '';
public array $columnWidth = [];
public bool $deleteFileAfterSend = true;
public array $batchExport = [];
public function __construct(public string $fileName = 'export')
{
}
public static function make(string $fileName): self
{
return new Exportable($fileName);
}
public function type(string ...$types): self
{
foreach ($types as $type) {
$this->type[] = $type;
}
return $this;
}
public function csvSeparator(string $separator): self
{
$this->csvSeparator = $separator;
return $this;
}
public function csvDelimiter(string $delimiter): self
{
$this->csvDelimiter = $delimiter;
return $this;
}
public function striped(string $color = 'd0d3d8'): self
{
$this->striped = $color;
return $this;
}
public function columnWidth(array $columnWidth): self
{
$this->columnWidth = $columnWidth;
return $this;
}
public function deleteFileAfterSend(bool $deleteFileAfterSend = true): self
{
$this->deleteFileAfterSend = $deleteFileAfterSend;
return $this;
}
public function queues(string $queues): self
{
data_set($this->batchExport, 'queues', $queues);
return $this;
}
public function onQueue(string $onQueue): self
{
data_set($this->batchExport, 'onQueue', $onQueue);
return $this;
}
public function onConnection(string $connection): self
{
data_set($this->batchExport, 'onConnection', $connection);
return $this;
}
public function toLivewire(): array
{
return (array) $this;
}
public static function fromLivewire($value)
{
return $value;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace PowerComponents\LivewirePowerGrid;
use Livewire\Wireable;
final class Exportable implements Wireable
{
public const TYPE_XLS = 'xlsx';
public const TYPE_CSV = 'csv';
public string $name = 'exportable';
public string $csvSeparator = ',';
public string $csvDelimiter = '"';
public array $type = [];
public string $striped = '';
public array $columnWidth = [];
public bool $deleteFileAfterSend = true;
public array $batchExport = [];
public function __construct(public string $fileName = 'export')
{
}
public static function make(string $fileName): self
{
return new Exportable($fileName);
}
public function type(string ...$types): self
{
foreach ($types as $type) {
$this->type[] = $type;
}
return $this;
}
public function csvSeparator(string $separator): self
{
$this->csvSeparator = $separator;
return $this;
}
public function csvDelimiter(string $delimiter): self
{
$this->csvDelimiter = $delimiter;
return $this;
}
public function striped(string $color = 'd0d3d8'): self
{
$this->striped = $color;
return $this;
}
public function columnWidth(array $columnWidth): self
{
$this->columnWidth = $columnWidth;
return $this;
}
public function deleteFileAfterSend(bool $deleteFileAfterSend = true): self
{
$this->deleteFileAfterSend = $deleteFileAfterSend;
return $this;
}
public function queues(string $queues): self
{
data_set($this->batchExport, 'queues', $queues);
return $this;
}
public function onQueue(string $onQueue): self
{
data_set($this->batchExport, 'onQueue', $onQueue);
return $this;
}
public function onConnection(string $connection): self
{
data_set($this->batchExport, 'onConnection', $connection);
return $this;
}
public function toLivewire(): array
{
return (array) $this;
}
public static function fromLivewire($value)
{
return $value;
}
}
Function Calls
None |
Stats
MD5 | 06b51b22c52e2012f0a5fc5b21f75a90 |
Eval Count | 0 |
Decode Time | 101 ms |