kematjaya/code-manager-bundle
最新稳定版本:7.0-BETA
Composer 安装命令:
composer require kematjaya/code-manager-bundle
包简介
README 文档
README
- installation
composer require kematjaya/code-manager-bundle
- update database schema
php bin/console doctrine:schema:update --force
- implement in your entity
...
use Kematjaya\CodeManager\Entity\CodeLibraryClientInterface;
...
class Transaction implements CodeLibraryClientInterface
{
/**
* @ORM\Column(type="string", length=255)
*/
private $code;
public function getClassId():?string
{
return $this->getId();
}
/**
* additional code
*/
public function getLibrary():array
{
return [
"foo" => "foo",
"bar" => 'bar'
];
}
public function getGeneratedCode():?string
{
return $this->getCode();
}
public function setGeneratedCode(string $code): CodeLibraryClientInterface
{
return $this->setCode($code);
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): CreditInterface
{
$this->code = $code;
return $this;
}
}
统计信息
- 总下载量: 1.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-17