123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Doctrine\Tests\Models\StockExchange;
-
- use Doctrine\Common\Collections\ArrayCollection;
-
-
- class Bond
- {
-
-
- private $id;
-
-
-
- private $name;
-
-
-
- public $stocks;
-
- public function __construct($name)
- {
- $this->name = $name;
- }
-
- public function getId()
- {
- return $this->id;
- }
-
- public function addStock(Stock $stock)
- {
- $this->stocks[$stock->getSymbol()] = $stock;
- }
- }
|