private function checkName() { if (empty($this->name)) { throw new \InvalidArgumentException("The name can not be empty"); } }