arg)){ if(!$throwExeception){return false; } throw new \InvalidArgumentException("require callback"); } return true; } public function test():bool{ $this->checkInputValues(); $this->tested = true; $reason = ($this->arg)(); if($reason === null){ return true; } $this->reason = $reason; return false; } }