<?php
namespace App\Entity;
use App\Config;
use FOS\UserBundle\Model\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass="App\Repository\MobuppsUsersRepository")
* @ORM\Table(name="users")
*/
class Users extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/** @ORM\Column(name="google_id", type="string", length=255, nullable=true) */
protected $google_id;
/** @ORM\Column(name="mts_id", type="string", length=255, nullable=true) */
protected $mts_id;
/** @ORM\Column(name="pingboard_id", type="string", length=255, nullable=true) */
protected $pingboard_id;
/** @ORM\Column(name="reports_to_id", type="string", length=255, nullable=true) */
protected $reports_to_id;
/** @ORM\Column(name="google_access_token", type="string", length=400, nullable=true) */
protected $google_access_token;
/** @ORM\Column(name="jwt_token", type="text", nullable=true) */
protected $jwtToken;
/** @ORM\Column(name="mts_access_token", type="string", length=2000, nullable=true) */
protected $mts_access_token;
/** @ORM\Column(type="string", length=1000, nullable=true) */
protected $picture;
/** @ORM\Column(type="string", length=1000, nullable=true) */
protected $name;
/** @ORM\Column(name="first_name", type="string", length=255, nullable=true) */
protected $firstName;
/** @ORM\Column(name="last_name", type="string", length=255, nullable=true) */
protected $lastName;
/** @ORM\Column(type="string", length=1000, nullable=true) */
protected $position;
/** @ORM\Column(type="string", length=1000, nullable=true) */
protected $userInfo;
/** @ORM\Column(type="string", length=1000, nullable=true) */
protected $loginType;
/** @ORM\Column(type="integer", nullable=true) */
protected $teamId;
/** @ORM\Column(type="json", nullable=true) */
protected $whitelistedIps;
/** @ORM\Column(type="string", nullable=true, options={"default"="active"}) */
protected $status = Config::ACTIVE_STATUS;
//YOU CAN ADD MORE CODE HERE !
/**
* Set googleId.
*
* @param string|null $googleId
*
* @return Users
*/
public function setGoogleId($googleId = null)
{
$this->google_id = $googleId;
return $this;
}
/**
* Get googleId.
*
* @return string|null
*/
public function getGoogleId()
{
return $this->google_id;
}
/**
* Set googleAccessToken.
*
* @param string|null $googleAccessToken
*
* @return Users
*/
public function setGoogleAccessToken($googleAccessToken = null)
{
$this->google_access_token = $googleAccessToken;
return $this;
}
/**
* Get googleAccessToken.
*
* @return string|null
*/
public function getGoogleAccessToken()
{
return $this->google_access_token;
}
/**
* Set picture.
*
* @param string|null $picture
*
* @return Users
*/
public function setPicture($picture = null)
{
$this->picture = $picture;
return $this;
}
/**
* Get picture.
*
* @return string|null
*/
public function getPicture()
{
return $this->picture;
}
/**
* Set name.
*
* @param string|null $name
*
* @return Users
*/
public function setName($name = null)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string|null
*/
public function getName()
{
return $this->name;
}
/**
* Set position.
*
* @param string|null $position
*
* @return Users
*/
public function setPosition($position = null)
{
$this->position = $position;
return $this;
}
/**
* Get position.
*
* @return string|null
*/
public function getPosition()
{
return $this->position;
}
/**
* Set userInfo.
*
* @param string|null $userInfo
*
* @return Users
*/
public function setUserInfo($userInfo = null)
{
$this->userInfo = $userInfo;
return $this;
}
/**
* Get userInfo.
*
* @return string|null
*/
public function getUserInfo()
{
return $this->userInfo;
}
/**
* Set teamId.
*
* @param int|null $teamId
*
* @return Users
*/
public function setTeamId($teamId = null)
{
$this->teamId = $teamId;
return $this;
}
/**
* Get teamId.
*
* @return int|null
*/
public function getTeamId()
{
return $this->teamId;
}
/**
* Set status.
*
* @param string|null $status
*
* @return Users
*/
public function setStatus($status = null)
{
$this->status = $status;
return $this;
}
/**
* Get status.
*
* @return string|null
*/
public function getStatus()
{
return $this->status;
}
public function getId(): ?int
{
return $this->id;
}
public function getLoginType(): ?string
{
return $this->loginType;
}
public function setLoginType(?string $loginType): self
{
$this->loginType = $loginType;
return $this;
}
public function getMtsId(): ?string
{
return $this->mts_id;
}
public function setMtsId(?string $mts_id): self
{
$this->mts_id = $mts_id;
return $this;
}
public function getMtsAccessToken(): ?string
{
return $this->mts_access_token;
}
public function setMtsAccessToken(?string $mts_access_token): self
{
$this->mts_access_token = $mts_access_token;
return $this;
}
public function getWhitelistedIps(): ?array
{
return $this->whitelistedIps;
}
public function setWhitelistedIps(?array $whitelistedIps): static
{
$this->whitelistedIps = $whitelistedIps;
return $this;
}
public function getJwtToken(): ?string
{
return $this->jwtToken;
}
public function setJwtToken(?string $jwtToken): self
{
$this->jwtToken = $jwtToken;
return $this;
}
public function getPingboardId(): ?string
{
return $this->pingboard_id;
}
public function setPingboardId(?string $pingboard_id): self
{
$this->pingboard_id = $pingboard_id;
return $this;
}
public function getReportsToId(): ?string
{
return $this->reports_to_id;
}
public function setReportsToId(?string $reports_to_id): self
{
$this->reports_to_id = $reports_to_id;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
}