File: /home/undanet/www/PortalEmpleo/src/Entity/User.php
<?php
namespace PortalEmpleo\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
* @ORM\Table(name="user")
* @ORM\Entity
*/
class User
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="username", type="string", length=75, nullable=false)
*/
private $username;
/**
* @var bool|null
*
* @ORM\Column(name="baja", type="boolean", nullable=true)
*/
private $baja;
public function __construct(string $username)
{
$this->username = $username;
}
/**
* Get the value of id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set the value of id
*
* @param int $id
*
* @return self
*/
public function setId(int $id)
{
$this->id = $id;
return $this;
}
/**
* Get the value of username
*
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* Set the value of username
*
* @param string $username
*
* @return self
*/
public function setUsername(string $username)
{
$this->username = $username;
return $this;
}
/**
* Get the value of baja
*
* @return bool|null
*/
public function getBaja()
{
return $this->baja;
}
/**
* Set the value of baja
*
* @param bool|null $baja
*
* @return self
*/
public function setBaja($baja)
{
$this->baja = $baja;
return $this;
}
}