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...
6
{
7
/**
8
* @var OperationResult[]
9
*/
10
protected $operationResults = [];
11
12
/**
13
* Adds an operation result to the end of the list.
14
*
15
* @param OperationResult $operationResult
16
* @return OperationResultList
17
*/
18
public function addOperationResult(OperationResult $operationResult): OperationResultList
19
{
20
$this->operationResults[] = $operationResult;
21
22
return $this;
23
}
24
25
/**
26
* Appends another operation result list to the end of this list.
27
*
28
* @param OperationResultList $other
29
* @return OperationResultList
30
*/
31
public function append(OperationResultList $other): OperationResultList
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.