| Total Complexity | 7 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class DetailLawyer extends Lawyer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $chamberOfLaw; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var LawFormation|null |
||
| 14 | */ |
||
| 15 | protected $lawFormation; |
||
| 16 | |||
| 17 | public static function init(Lawyer $lawyer): DetailLawyer |
||
| 21 | } |
||
| 22 | |||
| 23 | public function loadFromLawyer(Lawyer $lawyer): self |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getChamberOfLaw(): string |
||
| 38 | { |
||
| 39 | return $this->chamberOfLaw ?: ''; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $chamberOfLaw |
||
| 44 | * |
||
| 45 | * @return DetailLawyer |
||
| 46 | */ |
||
| 47 | public function setChamberOfLaw(string $chamberOfLaw): DetailLawyer |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return LawFormation|null |
||
| 56 | */ |
||
| 57 | public function getLawFormation(): ?LawFormation |
||
| 58 | { |
||
| 59 | return $this->lawFormation; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param LawFormation|null $lawFormation |
||
| 64 | * |
||
| 65 | * @return DetailLawyer |
||
| 66 | */ |
||
| 67 | public function setLawFormation(?LawFormation $lawFormation): DetailLawyer |
||
| 72 | } |
||
| 73 | } |
||
| 74 |