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

ErrorThread::method()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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