kematjaya / code-manager-bundle
Installs: 1 264
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- doctrine/orm: ^2.7
- kematjaya/code-manager: ^2.0
- symfony/config: ^4.0|^5.0
- symfony/dependency-injection: ^4.0|^5.0
- symfony/uid: ^5.2
- symfony/yaml: ^4.0|^5.0
Requires (Dev)
- phpunit/phpunit: ^9.0
- symfony/browser-kit: ^4.0|^5.0
- symfony/framework-bundle: ^4.0|^5.0
- symfony/var-dumper: ^4.0|^5.0
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;
}
}