<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
class UserRole {
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $name;
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return UserRole
*/
public function setName($name) {
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName() {
return $this->name;
}
public function __toString() {
$roleID = $this->id;
$roleName = $this->name;
return "RoleID: $roleID, RoleName: $roleName";
}
}