定制 kematjaya/code-manager-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-17