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...
9
{
10
/** @var null|string */
11
private $heading;
12
13
/** @var null|DimensionsObject */
14
private $dimensions;
15
16
/** @var null|string */
17
private $text;
18
19
/**
20
* @return null|string
21
*/
22
3
public function getHeading()
23
{
24
3
return $this->heading;
25
}
26
27
/**
28
* @param string $heading
29
*
30
* @return DescriptionObject
31
*/
32
1
public function setHeading(string $heading): self
33
{
34
1
$this->heading = $heading;
35
36
1
return $this;
37
}
38
39
/**
40
* @return null|DimensionsObject
41
*/
42
3
public function getDimensions()
43
{
44
3
return $this->dimensions;
45
}
46
47
/**
48
* @param DimensionsObject $dimensions
49
*
50
* @return DescriptionObject
51
*/
52
1
public function setDimensions(DimensionsObject $dimensions): self
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.