/** * Add doc * * @param Doc $doc * * @return Transaction */ public function addDoc(Doc $doc) { $this->docs[] = $doc; $doc->addTransaction($this); return $this; }