Persona::sexo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
namespace src;
4
5
class Persona
6
{
7
    private $_nombreCompleto;
8
    private $_fechaDeNacimiento;
9
    private $_sexo;
10
11
    public function __construct
12
    (
13
        Nombrecompleto $NombreCompleto,
14
        FechaDeNacimiento $FechaDeNacimiento,
15
        Sexo $Sexo
16
    )
17
    {
18
        $this->_nombreCompleto = $NombreCompleto;
19
        $this->_fechaDeNacimiento = $FechaDeNacimiento;
20
        $this->_sexo = $Sexo;
21
    }
22
23
    public function nombreCompleto(): string
24
    {
25
        return $this->_nombreCompleto->nombreCompleto();
26
    }
27
28
    public function nombres(): string
29
    {
30
        return $this->_nombreCompleto->nombres();
31
    }
32
33
    public function primerApellido(): string
34
    {
35
        return $this->_nombreCompleto->primerApellido();
36
    }
37
38
    public function segundoApellido(): string
39
    {
40
        return $this->_nombreCompleto->segundoApellido();
41
    }
42
43
    public function fechaDeNacimiento(): string
44
    {
45
        return $this->_fechaDeNacimiento->fechaDeNacimiento();
46
    }
47
48
    public function sexo(): string
49
    {
50
        return $this->_sexo->sexo();
51
    }
52
}