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\Config
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Config\Traits;
use Phossa2\Config\Interfaces\WritableInterface;
* Implementation of WritableInterface
* @author Hong Zhang <[email protected]>
* @see WritableInterface
* @version 2.0.7
* @since 2.0.0 added
* @since 2.0.7 removed abstract set()
trait WritableTrait
{
* Writable defalt to TRUE
* @var false|mixed
* @access protected
protected $writable = true;
* {@inheritDoc}
public function isWritable()/*# : bool */
return false !== $this->writable;
}
public function setWritable($writable)/*# : bool */
$this->writable = $writable;
return true;