Completed
Pull Request — master (#2)
by Tomáš
09:20
created

UnimplementedMethodException   A

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 SixtyEightPublishers;
8
9
final class UnimplementedMethodException extends \BadMethodCallException implements SixtyEightPublishers\User\Common\Exception\IException
10
{
11
	/**
12
	 * @param string $className
13
	 * @param string $method
14
	 *
15
	 * @return \SixtyEightPublishers\User\DoctrineIdentity\Exception\UnimplementedMethodException
16
	 */
17
	public static function unimplementedMethod(string $className, string $method): self
18
	{
19
		return new static(sprintf(
20
			'Called method %s::%s() is not implemented.',
21
			$className,
22
			$method
23
		));
24
	}
25
}
26