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...
15
{
16
use TActionTrait, GEmptyElementExtensibilityTrait;
17
/**
18
* @property string $action
19
*/
20
private $action = null;
21
22
/**
23
* Gets as action
24
*
25
* @return string
26
*/
27
public function getAction()
28
{
29
return $this->action;
30
}
31
32
/**
33
* Sets a new action
34
*
35
* @param string $action
36
* @return self
37
*/
38
public function setAction($action)
39
{
40
$this->action = $action;
41
return $this;
42
}
43
44
/**
45
* @param null $msg
46
* @return bool
47
*/
48
public function isOK(&$msg = null)
49
{
50
if (!$this->isStringNotNullOrEmpty($this->action)) {
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.