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 /** * Copyright (c) 2019. Mallto.Co.Ltd.<mall-to.com> All rights reserved. */ nam..
Decoded Output download
<?php
/**
* Copyright (c) 2019. Mallto.Co.Ltd.<mall-to.com> All rights reserved.
*/
namespace Encore\Admin\Form\Layout;
use Encore\Admin\Form\Field;
use Illuminate\Support\Collection;
class Column
{
/**
* @var Collection
*/
protected $fields;
/**
* @var int
*/
protected $width;
/**
* Column constructor.
*
* @param int $width
*/
public function __construct($width = 12)
{
$this->width = $width;
$this->fields = new Collection();
}
/**
* Add a filter to this column.
*
* @param Field $field
*/
public function add(Field $field)
{
$this->fields->push($field);
}
/**
* Remove fields from column.
*
* @param $fields
*/
public function removeFields($fields)
{
$this->fields = $this->fields->reject(function (Field $field) use ($fields) {
return in_array($field->column(), $fields);
});
}
/**
* Get all filters in this column.
*
* @return Collection
*/
public function fields()
{
return $this->fields;
}
/**
* Set column width.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* Get column width.
*
* @return int
*/
public function width()
{
return $this->width;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright (c) 2019. Mallto.Co.Ltd.<mall-to.com> All rights reserved.
*/
namespace Encore\Admin\Form\Layout;
use Encore\Admin\Form\Field;
use Illuminate\Support\Collection;
class Column
{
/**
* @var Collection
*/
protected $fields;
/**
* @var int
*/
protected $width;
/**
* Column constructor.
*
* @param int $width
*/
public function __construct($width = 12)
{
$this->width = $width;
$this->fields = new Collection();
}
/**
* Add a filter to this column.
*
* @param Field $field
*/
public function add(Field $field)
{
$this->fields->push($field);
}
/**
* Remove fields from column.
*
* @param $fields
*/
public function removeFields($fields)
{
$this->fields = $this->fields->reject(function (Field $field) use ($fields) {
return in_array($field->column(), $fields);
});
}
/**
* Get all filters in this column.
*
* @return Collection
*/
public function fields()
{
return $this->fields;
}
/**
* Set column width.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* Get column width.
*
* @return int
*/
public function width()
{
return $this->width;
}
}
Function Calls
None |
Stats
MD5 | 27d52ffc0d44ea8bcf277dba3cc6b2a6 |
Eval Count | 0 |
Decode Time | 117 ms |