PHP code example of chgst / persistence-doctrine
1. Go to this page and download the library: Download chgst/persistence-doctrine library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chgst / persistence-doctrine example snippets
// src/Document/DefaultEvent.php
namespace Document;
use Chgst\Event\Event;
class DefaultEvent extends Event
{
protected string $id;
public function getId(): string
{
return $this->id;
}
public function setId(string $id): self
{
$this->id = $id;
return $this;
}
}