for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Changelog keeper
*
* @link https://github.com/hiqdev/chkipper
* @package chkipper
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\chkipper\history;
* Abstract history renderer.
* @author Andrii Vasyliev <[email protected]>
abstract class AbstractRenderer
{
* @var ConfigInterface config object
protected $_config;
public $normalizeOptions = [];
public function __construct(ConfigInterface $config)
$this->_config = $config;
}
public function getConfig()
return $this->_config;
public function setHistory($value)
$this->_history = $value;
_history
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
$this->_history->normalize($this->normalizeOptions);
public function getHistory()
return $this->_history;
* Renders history to string.
* @param History $history
* @return string
abstract public function render(History $history);
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: