private function needed(groupdata $groupdata, individual $individual)
{
foreach ($groupdata->getTargets() as $target) {
if ($individual->hasName() && $target->hasName()) {
if ($target->getName()->getId() == $individual->getName()->getId()) {
return true;
}
} else if ($individual->hasAge() && $target->hasAge()) {
if ($target->getAge()->getId() == $individual->getAge()->getId()) {
return true;
}
} else {
if ($target->getCity()->getId() == $individual->getCiry()->getId()) {
return true;
}
}
}
return false;
}*/
lundi 24 août 2015
phpunit testing for beginers
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire