Skip to content

Instantly share code, notes, and snippets.

@nicolasdanelon
Last active October 2, 2023 21:19
Show Gist options
  • Save nicolasdanelon/527d70d6227e8193370d1879f128ed1c to your computer and use it in GitHub Desktop.
Save nicolasdanelon/527d70d6227e8193370d1879f128ed1c to your computer and use it in GitHub Desktop.
type of cirujana
<?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