/** * @param $data * @return bool */ protected function isAllowed($data) { $this->allowanceValidator->setData($data); if ($this->allowanceValidator->isAllowed()) { return true; } return false; }