<?php
/*
* This file is part of the VPAutoUserBundle package.
*
* (c) CNSX <http://www.cnsx.net/>
*
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\LocaleRepository")
*
* @ORM\Table(name="locale")
*/
class Locale implements \Stringable
{
/**
* @ORM\Id
*
* @ORM\Column(type="string", length=8, unique=true)
*/
protected $id;
/**
* @ORM\Column(type="string", length=255, unique=true)
*/
protected $name;
protected $users;
public function __toString(): string
{
return (string) $this->getName();
}
/**
* Set id.
*
* @param string $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* Get id.
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Set name.
*
* @param string $name
*/
public function setName($name): void
{
$this->name = $name;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
public function getDisplayedName()
{
return strtoupper((string) $this->name);
}
}