Initial commit

This commit is contained in:
Dávid Danyi
2017-07-31 15:50:48 +02:00
commit 05f45e5153
44 changed files with 5668 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
class KanbanBoard implements \JsonSerializable
{
/**
* @var KanbanEntry[]|ArrayCollection
*/
private $kanbanEntries;
public function __construct()
{
$this->kanbanEntries = new ArrayCollection();
}
/**
* @return KanbanEntry[]|ArrayCollection
*/
public function getKanbanEntries(): ArrayCollection
{
return $this->kanbanEntries;
}
/**
* @param KanbanEntry[]|ArrayCollection $kanbanEntries
* @return KanbanBoard
*/
public function setKanbanEntries(ArrayCollection $kanbanEntries): KanbanBoard
{
$this->kanbanEntries = $kanbanEntries;
return $this;
}
/**
* @param KanbanEntry $kanbanEntry
* @return KanbanBoard
*/
public function addKanbanEntry(KanbanEntry $kanbanEntry): KanbanBoard
{
if(!$this->kanbanEntries->contains($kanbanEntry)) {
$this->kanbanEntries->add($kanbanEntry);
}
return $this;
}
/**
* @param KanbanEntry $kanbanEntry
* @return KanbanBoard
*/
public function removeKanbanEntry(KanbanEntry $kanbanEntry): KanbanBoard
{
if($this->kanbanEntries->contains($kanbanEntry)) {
$this->kanbanEntries->removeElement($kanbanEntry);
}
return $this;
}
/**
* @return array
*/
function jsonSerialize()
{
return $this->kanbanEntries->getValues();
}
}