Init Gitea
This commit is contained in:
51
Entity/BaseInfoTrait.php
Normal file
51
Entity/BaseInfoTrait.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of EC-CUBE
|
||||
*
|
||||
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
|
||||
*
|
||||
* http://www.ec-cube.co.jp/
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Plugin\Passkeys\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Eccube\Annotation\EntityExtension;
|
||||
|
||||
/**
|
||||
* @EntityExtension("Eccube\Entity\BaseInfo")
|
||||
*/
|
||||
trait BaseInfoTrait
|
||||
{
|
||||
/**
|
||||
* Use passkeys
|
||||
*
|
||||
* @var bool
|
||||
*
|
||||
* @ORM\Column(name="passkeys_use", type="boolean", nullable=false, options={"default":false})
|
||||
*/
|
||||
private bool $passkeys_use;
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isPasskeysUse(): bool
|
||||
{
|
||||
log_info('isPasskeysUse:'.$this->passkeys_use);
|
||||
return $this->passkeys_use;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $passkeys_use
|
||||
*/
|
||||
public function setPasskeysUse(bool $passkeys_use): void
|
||||
{
|
||||
$this->passkeys_use = $passkeys_use;
|
||||
log_info('setPasskeysUse:'.$this->passkeys_use);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user