for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByJG\AnyDataset;
class NoSqlDocument
{
protected $idDocument;
protected $collection;
protected $document;
protected $subDocument = [];
/**
* NoSqlDocument constructor.
*
* @param $idDocument
* @param $collection
* @param array $document
*/
public function __construct($idDocument = null, $collection = null, $document = [])
$this->idDocument = $idDocument;
$this->collection = $collection;
$this->setDocument($document);
}
* @return null
public function getIdDocument()
return $this->idDocument;
* @param null $idDocument
* @return $this
public function setIdDocument($idDocument)
return $this;
public function getCollection()
return $this->collection;
* @param null $collection
public function setCollection($collection)
* @return array
public function getDocument()
return $this->document;
public function setDocument($document)
$this->document = $document;
public function addSubDocument(NoSqlDocument $document)
$this->subDocument[] = $document;