@@ -170,6 +170,9 @@ |
||
| 170 | 170 | return $this->id; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param string $status |
|
| 175 | + */ |
|
| 173 | 176 | public function __construct($status) |
| 174 | 177 | { |
| 175 | 178 | $this->status = $status; |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | return $this->parent; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param null|DDC1436Page $parent |
|
| 86 | + */ |
|
| 84 | 87 | public function setParent($parent) |
| 85 | 88 | { |
| 86 | 89 | $this->parent = $parent; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
| 6 | -use Doctrine\ORM\UnitOfWork; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * @group DDC-1514 |
@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 6 | -use Doctrine\Tests\Models\CMS\CmsArticle; |
|
| 7 | -use Doctrine\Tests\Models\CMS\CmsUser; |
|
| 8 | - |
|
| 9 | 5 | /** |
| 10 | 6 | * @group DDC-1461 |
| 11 | 7 | */ |
@@ -85,6 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * Set file |
| 88 | + * @param DDC1509File $value |
|
| 88 | 89 | */ |
| 89 | 90 | public function setFile($value = null) |
| 90 | 91 | { |
@@ -104,6 +105,9 @@ discard block |
||
| 104 | 105 | return $this->thumbnail; |
| 105 | 106 | } |
| 106 | 107 | |
| 108 | + /** |
|
| 109 | + * @param DDC1509File $thumbnail |
|
| 110 | + */ |
|
| 107 | 111 | public function setThumbnail($thumbnail) |
| 108 | 112 | { |
| 109 | 113 | $this->thumbnail = $thumbnail; |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\UnitOfWork; |
|
| 6 | - |
|
| 7 | 5 | class DDC381Test extends \Doctrine\Tests\OrmFunctionalTestCase |
| 8 | 6 | { |
| 9 | 7 | protected function setUp() |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
| 6 | -use Doctrine\ORM\UnitOfWork; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * @group DDC-1514 |
@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 6 | - |
|
| 7 | -use Doctrine\Tests\Models\CMS\CmsComment; |
|
| 8 | -use Doctrine\Tests\Models\CMS\CmsArticle; |
|
| 9 | 5 | use Doctrine\Tests\Models\CMS\CmsUser; |
| 10 | 6 | |
| 11 | 7 | /** |
@@ -83,6 +83,9 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $propName |
|
| 88 | + */ |
|
| 86 | 89 | protected function onPropertyChanged($propName, $oldValue, $newValue) { |
| 87 | 90 | if ($this->listeners) { |
| 88 | 91 | foreach ($this->listeners as $listener) { |
@@ -111,11 +114,17 @@ discard block |
||
| 111 | 114 | return $this->name; |
| 112 | 115 | } |
| 113 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $name |
|
| 119 | + */ |
|
| 114 | 120 | function setName($name) { |
| 115 | 121 | $this->onPropertyChanged('name', $this->name, $name); |
| 116 | 122 | $this->name = $name; |
| 117 | 123 | } |
| 118 | 124 | |
| 125 | + /** |
|
| 126 | + * @param DDC1690Child $child |
|
| 127 | + */ |
|
| 119 | 128 | function setChild($child) { |
| 120 | 129 | $this->child = $child; |
| 121 | 130 | } |
@@ -144,11 +153,17 @@ discard block |
||
| 144 | 153 | return $this->name; |
| 145 | 154 | } |
| 146 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string $name |
|
| 158 | + */ |
|
| 147 | 159 | function setName($name) { |
| 148 | 160 | $this->onPropertyChanged('name', $this->name, $name); |
| 149 | 161 | $this->name = $name; |
| 150 | 162 | } |
| 151 | 163 | |
| 164 | + /** |
|
| 165 | + * @param DDC1690Parent $parent |
|
| 166 | + */ |
|
| 152 | 167 | function setParent($parent) { |
| 153 | 168 | $this->parent = $parent; |
| 154 | 169 | } |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 4 | 4 | |
| 5 | -use Doctrine\Common\NotifyPropertyChanged, |
|
| 6 | - Doctrine\Common\PropertyChangedListener; |
|
| 5 | +use Doctrine\Common\NotifyPropertyChanged; |
|
| 6 | +use Doctrine\Common\PropertyChangedListener; |
|
| 7 | 7 | |
| 8 | 8 | class DDC1690Test extends \Doctrine\Tests\OrmFunctionalTestCase |
| 9 | 9 | { |
@@ -51,6 +51,9 @@ discard block |
||
| 51 | 51 | $this->_em->flush(); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $class |
|
| 56 | + */ |
|
| 54 | 57 | private function createCars($class) |
| 55 | 58 | { |
| 56 | 59 | $bimmer = new $class; |
@@ -77,6 +80,9 @@ discard block |
||
| 77 | 80 | return array($bimmer, $crysler, $merc, $volvo); |
| 78 | 81 | } |
| 79 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $class |
|
| 85 | + */ |
|
| 80 | 86 | private function createDrivers($class) |
| 81 | 87 | { |
| 82 | 88 | $john = new $class; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 3 | 3 | |
| 4 | -use Doctrine\Tests\Models\Taxi\Car, |
|
| 5 | - Doctrine\Tests\Models\Taxi\Driver, |
|
| 6 | - Doctrine\Tests\Models\Taxi\Ride, |
|
| 7 | - Doctrine\Tests\Models\Taxi\PaidRide; |
|
| 4 | +use Doctrine\Tests\Models\Taxi\Car; |
|
| 5 | +use Doctrine\Tests\Models\Taxi\Driver; |
|
| 6 | +use Doctrine\Tests\Models\Taxi\Ride; |
|
| 7 | +use Doctrine\Tests\Models\Taxi\PaidRide; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * @group DDC-1884 |
@@ -106,6 +106,9 @@ |
||
| 106 | 106 | */ |
| 107 | 107 | private $value; |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param string $value |
|
| 111 | + */ |
|
| 109 | 112 | public function __construct($value) |
| 110 | 113 | { |
| 111 | 114 | $this->value = $value; |