createdAt = new \DateTimeImmutable('now'); } /** * Add cause. * * @param mixed $cause Cause * * @return void * * @since 1.0.0 */ public function addCause($cause) : void { $this->causes[] = $cause; } /** * Get causes * * @return array * * @since 1.0.0 */ public function getCauses() : array { return $this->causes; } /** * Add solution. * * @param mixed $solution Solution * * @return void * * @since 1.0.0 */ public function addSolution($solution) : void { $this->solutions[] = $solution; } /** * Get solutions * * @return array * * @since 1.0.0 */ public function getSolutions() : array { return $this->solutions; } /** * Add risk object. * * @param mixed $object Risk object * * @return void * * @since 1.0.0 */ public function addRiskObject($object) : void { $this->riskObjects[] = $object; } /** * Get risk objects * * @return array * * @since 1.0.0 */ public function getRiskObjects() : array { return $this->riskObjects; } /** * Add history. * * @param mixed $history History * * @return void * * @since 1.0.0 */ public function addHistory($history) : void { $this->histScore[] = $history; } /** * Get history * * @return array * * @since 1.0.0 */ public function getHistory() : array { return $this->histScore; } use \Modules\Media\Models\MediaListTrait; }