unimplementedMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\User\DoctrineIdentity\Exception;
6
7
use BadMethodCallException;
8
use SixtyEightPublishers\User\Common\Exception\ExceptionInterface;
9
10
final class UnimplementedMethodException extends BadMethodCallException implements ExceptionInterface
11
{
12
	/**
13
	 * @param string $className
14
	 * @param string $method
15
	 *
16
	 * @return \SixtyEightPublishers\User\DoctrineIdentity\Exception\UnimplementedMethodException
17
	 */
18
	public static function unimplementedMethod(string $className, string $method): self
19
	{
20
		return new static(sprintf(
21
			'Called method %s::%s() is not implemented.',
22
			$className,
23
			$method
24
		));
25
	}
26
}
27