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...
8
{
9
use OptionAccessorsTrait;
10
11
/**
12
* @param string $name
13
* @param mixed $value
14
* @return $this
15
*/
16
abstract public function addAttr($name, $value);
17
18
/**
19
* @param string $name
20
* @return array|mixed
21
*/
22
abstract public function getAttr($name = null);
23
24
/**
25
* @param string $name
26
* @return $this
27
*/
28
abstract public function removeAttr($name);
29
30
/**
31
* @param bool $autocomplete
32
* @return $this
33
*/
34
public function setAutocomplete($autocomplete = true)
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.