for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Funivan\Cs\Fs;
/**
*
*/
class FileContent {
* @var string
private $content;
* @var string|null
private $initialContentHashSum = null;
* @param string $content
public function __construct($content) {
$this->content = $content;
$this->initialContentHashSum = $this->getContentHash();
}
* @void
public function set($content) {
* @return string
public function get() {
return $this->content;
* @return boolean
public function isChanged() {
return ($this->initialContentHashSum !== $this->getContentHash());
private function getContentHash() {
return md5($this->content);