Last active
October 2, 2023 21:19
-
-
Save nicolasdanelon/527d70d6227e8193370d1879f128ed1c to your computer and use it in GitHub Desktop.
type of cirujana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\valueObjects\tipoPersona; | |
class cirujana extends personaNormal { | |
public function __construct($paramVisual, $paramMoral): void | |
{ | |
parent::construct(); | |
} | |
public function isGrasa(): bool | |
{ | |
return $this->hasSushi() && $this->hasMate() ? false : true; | |
} | |
public function hasSushi(): bool | |
{ | |
return isset($this->paramVisual->getSushi()); | |
} | |
public function hasMate(): bool | |
{ | |
return isset($this->paramVisual->getMate()); | |
} | |
public function checkDaughterStatus(): bool | |
{ | |
$daughterAge = $this->paramMoral->daughter->getAge(); | |
!$daughterAge >= env('DAUGHTER_AGE', 15); | |
} | |
public function isNormal(): bool | |
{ | |
return !$this->paramMoral->getTipoPersona == tipoPersona::maximaZorraquieta; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment