_propDict)) { if (is_a($this->_propDict["attackSimulationUser"], "\Microsoft\Graph\Model\AttackSimulationUser") || is_null($this->_propDict["attackSimulationUser"])) { return $this->_propDict["attackSimulationUser"]; } else { $this->_propDict["attackSimulationUser"] = new AttackSimulationUser($this->_propDict["attackSimulationUser"]); return $this->_propDict["attackSimulationUser"]; } } return null; } /** * Sets the attackSimulationUser * The user in an attack simulation and training campaign. * * @param AttackSimulationUser $val The value to assign to the attackSimulationUser * * @return AttackSimulationRepeatOffender The AttackSimulationRepeatOffender */ public function setAttackSimulationUser($val) { $this->_propDict["attackSimulationUser"] = $val; return $this; } /** * Gets the repeatOffenceCount * Number of repeat offences of the user in attack simulation and training campaigns. * * @return int|null The repeatOffenceCount */ public function getRepeatOffenceCount() { if (array_key_exists("repeatOffenceCount", $this->_propDict)) { return $this->_propDict["repeatOffenceCount"]; } else { return null; } } /** * Sets the repeatOffenceCount * Number of repeat offences of the user in attack simulation and training campaigns. * * @param int $val The value of the repeatOffenceCount * * @return AttackSimulationRepeatOffender */ public function setRepeatOffenceCount($val) { $this->_propDict["repeatOffenceCount"] = $val; return $this; } }