for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Murtukov\PHPCodeGenerator;
/**
* Helper class for conditional builders.
*/
class Mock
{
private static object $caller;
private static self $instance;
public static function getInstance(object $caller): self
self::$caller = $caller;
return self::$instance ?? self::$instance = new self();
}
public function __call($name, $arguments)
return self::$caller;