This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
12
{
13
/** @var string unique resource identifier, received from mobile login request */
14
protected $token;
15
16
/**
17
* @param string $token unique resource identifier, received from mobile login request
18
*/
19
28
public function __construct($token)
20
{
21
28
$this->token = $token;
22
28
}
23
24
/**
25
* Get token
26
* @return string
27
*/
28
4
public function getToken()
29
{
30
4
return $this->token;
31
}
32
33
/**
34
* Get fields
35
* @return array
36
*/
37
4
public function getFields()
38
{
39
return [
40
4
'token' => $this->token,
41
];
42
}
43
44
/**
45
* Validation constraints for request data validation
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.