Code Duplication    Length = 36-36 lines in 2 locations

src/AppBundle/Entity/TipoConducta.php 1 location

@@ 28-63 (lines=36) @@
25
/**
26
 * @ORM\Entity
27
 */
28
class TipoConducta extends Tipo
29
{
30
    /**
31
     * @ORM\ManyToOne(targetEntity="CategoriaConducta")
32
     * @ORM\JoinColumn(nullable=false)
33
     */
34
    protected $categoria;
35
36
    /**
37
     * Set categoria
38
     *
39
     * @param CategoriaConducta $categoria
40
     * @return self
41
     */
42
    public function setCategoria(CategoriaConducta $categoria = null)
43
    {
44
        $this->categoria = $categoria;
45
46
        return $this;
47
    }
48
49
    /**
50
     * Get categoria
51
     *
52
     * @return CategoriaConducta
53
     */
54
    public function getCategoria()
55
    {
56
        return $this->categoria;
57
    }
58
59
    public function __toString()
60
    {
61
        return $this->getDescripcion() . ' (' . $this->getCategoria()->getDescripcion() . ')';
62
    }
63
}
64

src/AppBundle/Entity/TipoMedida.php 1 location

@@ 29-64 (lines=36) @@
26
/**
27
 * @ORM\Entity
28
 */
29
class TipoMedida extends Tipo
30
{
31
    /**
32
     * @ORM\ManyToOne(targetEntity="CategoriaMedida")
33
     * @ORM\JoinColumn(nullable=false)
34
     */
35
    protected $categoria;
36
37
    /**
38
     * Set categoria
39
     *
40
     * @param CategoriaMedida $categoria
41
     * @return self
42
     */
43
    public function setCategoria(CategoriaMedida $categoria = null)
44
    {
45
        $this->categoria = $categoria;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Get categoria
52
     *
53
     * @return CategoriaMedida
54
     */
55
    public function getCategoria()
56
    {
57
        return $this->categoria;
58
    }
59
60
    public function __toString()
61
    {
62
        return $this->getDescripcion() . ' (' . $this->getCategoria()->getDescripcion() . ')';
63
    }
64
}
65