for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Htsl\Helper;
////////////////////////////////////////////////////////////////
trait TGetter
{
/**
* Allow setting fooBar getter with getFooBar().
*
* @access public
* @param string $attribute
* @return mixed
*/
public function __get( $attribute )
if( is_callable([static::class, $getter= 'get'.implode('',array_map('ucfirst',explode('_',$attribute))),]) ){
return static::$getter();
}else{
throw new \Exception(static::class.' has no attribute named '.$attribute);
}
This check marks files that end in a newline character, i.e. an empy line.
This check marks files that end in a newline character, i.e. an empy line.