UnimplementedMethodException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A unimplementedMethod() 0 8 1
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