for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Query
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Query\Traits;
use Phossa2\Query\Interfaces\SettingsAwareInterface;
* SettingsAwareTrait
* Implementation of SettingsAwareInterface
* @author Hong Zhang <[email protected]>
* @see SettingsAwareInterface
* @version 2.0.0
* @since 2.0.0 added
trait SettingsAwareTrait
{
* settings
* @var array
* @access protected
protected $settings = [];
* {@inheritDoc}
public function setSettings(array $settings)
$this->settings = array_replace($this->settings, $settings);
return $this;
}
public function getSettings()/*# : array */
return $this->settings;