for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Component\Core\Model;
use Sylius\Component\User\Model\User;
class AdminUser extends User implements AdminUserInterface
{
/** @var string */
protected $firstName;
protected $lastName;
protected $localeCode;
public function __construct()
parent::__construct();
$this->roles = [AdminUserInterface::DEFAULT_ADMIN_ROLE];
}
/**
* {@inheritdoc}
public function getFirstName(): ?string
return $this->firstName;
public function setFirstName(?string $firstName): void
$this->firstName = $firstName;
public function getLastName(): ?string
return $this->lastName;
public function setLastName(?string $lastName): void
$this->lastName = $lastName;
public function getLocaleCode(): ?string
return $this->localeCode;
public function setLocaleCode(?string $code): void
$this->localeCode = $code;