Created
June 2, 2015 07:19
-
-
Save zogot/14181babd4475243fbf8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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