<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
class UserSetting
{
/**
* @var int
*/
private $id;
/**
* @var \DateTime|null
*/
private $createdAt;
/**
* @var \DateTime|null
*/
private $changedAt;
/**
* @var \App\Entity\User
*/
private $user;
/**
* @var \App\Entity\UserRole
*/
private $selectedUserRole;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set createdAt.
*
* @param \DateTime|null $createdAt
*
* @return UserSetting
*/
public function setCreatedAt($createdAt = null)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt.
*
* @return \DateTime|null
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set changedAt.
*
* @param \DateTime|null $changedAt
*
* @return UserSetting
*/
public function setChangedAt($changedAt = null)
{
$this->changedAt = $changedAt;
return $this;
}
/**
* Get changedAt.
*
* @return \DateTime|null
*/
public function getChangedAt()
{
return $this->changedAt;
}
/**
* Set user.
*
* @param \App\Entity\User|null $user
*
* @return UserSetting
*/
public function setUser(\App\Entity\User $user = null)
{
$this->user = $user;
return $this;
}
/**
* Get user.
*
* @return \App\Entity\User|null
*/
public function getUser()
{
return $this->user;
}
/**
* Set selectedUserRole.
*
* @param \App\Entity\UserRole|null $selectedUserRole
*
* @return UserSetting
*/
public function setSelectedUserRole(\App\Entity\UserRole $selectedUserRole = null)
{
$this->selectedUserRole = $selectedUserRole;
return $this;
}
/**
* Get selectedUserRole.
*
* @return \App\Entity\UserRole|null
*/
public function getSelectedUserRole()
{
return $this->selectedUserRole;
}
}