Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Company / CompanyFlexUltraContract.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Company/CompanyFlexUltraContract.php b/vendor/doctrine/orm/tests/Doctrine/Tests/Models/Company/CompanyFlexUltraContract.php
new file mode 100644 (file)
index 0000000..b9ad3d4
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+namespace Doctrine\Tests\Models\Company;
+
+/**
+ * @Entity
+ */
+class CompanyFlexUltraContract extends CompanyFlexContract
+{
+    /**
+     * @column(type="integer")
+     * @var int
+     */
+    private $maxPrice = 0;
+
+    public function calculatePrice()
+    {
+        return max($this->maxPrice, parent::calculatePrice());
+    }
+
+    public function getMaxPrice()
+    {
+        return $this->maxPrice;
+    }
+
+    public function setMaxPrice($maxPrice)
+    {
+        $this->maxPrice = $maxPrice;
+    }
+}
\ No newline at end of file