Init Gitea

This commit is contained in:
dqj
2025-10-06 21:45:33 +09:00
commit c8607205a2
33 changed files with 4268 additions and 0 deletions

51
Entity/BaseInfoTrait.php Normal file
View 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);
}
}