1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
-
- namespace Doctrine\Tests\Models\Company;
-
-
- abstract class CompanyContract
- {
-
-
- private $id;
-
-
-
- private $salesPerson;
-
-
-
- private $completed = false;
-
-
-
- private $engineers;
-
- public function __construct()
- {
- $this->engineers = new \Doctrine\Common\Collections\ArrayCollection;
- }
-
- public function getId()
- {
- return $this->id;
- }
-
- public function markCompleted()
- {
- $this->completed = true;
- }
-
- public function isCompleted()
- {
- return $this->completed;
- }
-
- public function getSalesPerson()
- {
- return $this->salesPerson;
- }
-
- public function setSalesPerson(CompanyEmployee $salesPerson)
- {
- $this->salesPerson = $salesPerson;
- }
-
- public function getEngineers()
- {
- return $this->engineers;
- }
-
- public function addEngineer(CompanyEmployee $engineer)
- {
- $this->engineers[] = $engineer;
- }
-
- public function removeEngineer(CompanyEmployee $engineer)
- {
- $this->engineers->removeElement($engineer);
- }
-
- abstract public function calculatePrice();
- }
|