for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tzsk\Payu\Helpers;
class Config
{
/**
* @var string
*/
protected $env;
protected $key;
protected $salt;
protected $driver;
protected $endpoint;
* @var array
protected $required_fields;
protected $optional_fields;
protected $additional_fields;
protected $redirect;
* Config constructor.
public function __construct()
foreach (config('payu') as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
* @return string
public function getDriver()
return $this->driver;
public function getEnv()
return $this->env;
public function getEndpoint()
return $this->endpoint;
* @return array
public function getRequiredFields()
return $this->required_fields;
public function getOptionalFields()
return $this->optional_fields;
public function getKey()
return $this->key;
public function getSalt()
return $this->salt;
public function getAdditionalFields()
return $this->additional_fields;
public function getRedirect()
return $this->redirect;