for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Orm\Model;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Uxmp\Core\Orm\Repository\UserRepository;
#[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\Table(name: '`user`')]
class User implements UserInterface
{
#[ORM\Column(type: Types::INTEGER)]
#[ORM\Id, ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
#[ORM\Column(type: Types::STRING)]
private string $name = '';
#[ORM\Column(type: Types::STRING, options: ['default' => 'en'])]
private string $language = 'en';
private string $password = '';
public function getId(): int
return $this->id;
}
public function getName(): string
return $this->name;
public function setName(string $name): UserInterface
$this->name = $name;
return $this;
public function getPassword(): string
return $this->password;
public function setPassword(string $password): UserInterface
$this->password = $password;
/**
* Returns the language iso2 code
*/
public function getLanguage(): string
return $this->language;
public function setLanguage(string $language): UserInterface
$this->language = $language;