for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Eclipxe\MicroCatalog\Exceptions;
use BadMethodCallException as PhpBadMethodCallException;
class BadMethodCallException extends PhpBadMethodCallException implements MicroCatalogException
{
/** @var string */
private $className;
private $methodName;
public function __construct(string $className, string $methodName)
parent::__construct(sprintf('Call to undefined method %s::%s', $className, $methodName));
$this->className = $className;
$this->methodName = $methodName;
}
public function getClassName(): string
return $this->className;
public function getMethodName(): string
return $this->methodName;