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

unimplementedMethod()   A

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 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