Skip to content

Instantly share code, notes, and snippets.

@zogot
Created June 2, 2015 07:19
Show Gist options
  • Save zogot/14181babd4475243fbf8 to your computer and use it in GitHub Desktop.
Save zogot/14181babd4475243fbf8 to your computer and use it in GitHub Desktop.
<?php
namespace App\Setting;
use Illuminate\Contracts\Support\Arrayable;
class SettingRequest implements Arrayable
{
protected $code;
protected $key;
public function __construct($code = null, $key = null)
{
$this->code = $code;
$this->key = $key;
}
public function getCode()
{
return $this->code;
}
public function getKey()
{
return $this->key;
}
/**
* Get the instance as an array.
*
* @return array
*/
public function toArray()
{
return [
'code' => $this->code,
'key' => $this->key
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment