for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Conia\Boiler;
trait RegistersMethod
{
protected CustomMethods $customMethods;
/** @psalm-param non-empty-string $name */
public function registerMethod(string $name, callable $callable): void
$this->customMethods->add($name, $callable);
}
public function getMethods(): CustomMethods
return $this->customMethods;