for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of AppName.
*
* (c) Monofony
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\User\Model\User as BaseUser;
/**
* @ORM\Entity
* @ORM\Table("sylius_admin_user")
class AdminUser extends BaseUser implements AdminUserInterface
{
* @var string
* @ORM\Column(type="string", nullable=true)
protected $lastName;
protected $firstName;
* AdminUser constructor.
public function __construct()
parent::__construct();
$this->roles = [self::DEFAULT_ADMIN_ROLE];
}
* {@inheritdoc}
public function getLastName(): ?string
return $this->lastName;
public function setLastName(?string $lastName): void
$this->lastName = $lastName;
public function getFirstName(): ?string
return $this->firstName;
public function setFirstName(?string $firstName): void
$this->firstName = $firstName;