Test Failed
Pull Request — master (#10)
by Alice
01:55
created

ErrorThread   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A method() 0 3 1
A getMethodName() 0 3 1
A getDependencies() 0 3 1
1
<?php
2
3
namespace Wonderland\Thread\Tests\Implementation;
4
5
use Wonderland\Thread\AbstractThread;
6
7
class ErrorThread extends AbstractThread
8
{
9
10
	public function method()
11
	{
12
		return null;
13
	}
14
15
	/**
16
	 * Return the name of the method to process during the thread
17
	 *
18
	 * @return string
19
	 */
20
	protected function getMethodName(): string
21
	{
22
		return 'method';
23
	}
24
25
	/**
26
	 * Return the list of dependencies that will be passed as parameters of the method referenced by getMethodName
27
	 *
28
	 * @return array
29
	 */
30
	protected function getDependencies(): array
31
	{
32
		return ['toto'];
33
	}
34
35
}
36