for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ffcms\Core\Traits;
/**
* Assistance tools for fast using some magical things and opportunity of classic object-oriented programming
*/
trait OopTools
{
* Create hash string from current class properties and itself values.
* This method is good stuff for caching dynamic instances
* @return string|null
public function createStringClassSnapshotHash()
$hash = null;
foreach ($this as $property => $value) {
$this
this<Ffcms\Core\Traits\OopTools>
$hash = md5($hash . $property . '=' . $value);
}
return $hash;