for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\Entity;
use Oc\Repository\AbstractEntity;
use Symfony\Component\Security\Core\User\UserInterface;
class UserEntity extends AbstractEntity implements UserInterface
{
/**
* @var int
*/
public $id;
* @var string
public $username;
public $password;
public $email;
* @var float
public $latitude;
public $longitude;
* @var bool
public $isActive;
public $firstname;
public $lastname;
public $country;
public $language;
* @var array
public $roles;
* Checks if the entity is new.
public function isNew(): bool
return $this->id === null;
}
public function getRoles(): array
return $this->roles;
public function getPassword(): ?string
return $this->password;
public function getSalt(): string
return '';
public function getUsername(): string
return $this->username;
public function eraseCredentials(): void