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

SuccessThread::method()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
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 SuccessThread extends AbstractThread
8
{
9
10
	public function method()
11
	{
12
		$this->notify(new TestEvent());
13
14
		return self::EXIT_STATUS_SUCCESS;
15
	}
16
17
	/**
18
	 * Return the name of the method to process during the thread
19
	 *
20
	 * @return string
21
	 */
22
	protected function getMethodName(): string
23
	{
24
		return 'method';
25
	}
26
27
	/**
28
	 * Return the list of dependencies that will be passed as parameters of the method referenced by getMethodName
29
	 *
30
	 * @return array
31
	 */
32
	protected function getDependencies(): array
33
	{
34
		return ['toto'];
35
	}
36
37
}
38