X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FModels%2FDDC117%2FDDC117Article.php;fp=vendor%2Fdoctrine%2Form%2Ftests%2FDoctrine%2FTests%2FModels%2FDDC117%2FDDC117Article.php;h=d77bb942b82843ce6ba77b30c95a6bf25e057bf3;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/DDC117/DDC117Article.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/DDC117/DDC117Article.php new file mode 100644 index 0000000..d77bb94 --- /dev/null +++ b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/DDC117/DDC117Article.php @@ -0,0 +1,87 @@ +title = $title; + $this->references = new \Doctrine\Common\Collections\ArrayCollection(); + $this->translations = new \Doctrine\Common\Collections\ArrayCollection(); + } + + public function setDetails($details) + { + $this->details = $details; + } + + public function id() + { + return $this->id; + } + + public function addReference($reference) + { + $this->references[] = $reference; + } + + public function references() + { + return $this->references; + } + + public function addTranslation($language, $title) + { + $this->translations[] = new DDC117Translation($this, $language, $title); + } + + public function getText() + { + return $this->details->getText(); + } + + public function getDetails() + { + return $this->details; + } + + public function resetText() + { + $this->details = null; + } + + public function getTranslations() + { + return $this->translations; + } +} \ No newline at end of file