@@ -3,13 +3,9 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Entity\Project; |
| 8 | - |
|
| 9 | 7 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 10 | - |
|
| 11 | 8 | use Symfony\Component\Security\Core\User\UserInterface; |
| 12 | - |
|
| 13 | 9 | use Developtech\AgilityBundle\Utils\Slugger; |
| 14 | 10 | |
| 15 | 11 | class ProjectManager { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | protected $slugger; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @param Doctrine\ORM\EntityManager $em |
|
| 22 | + * @param EntityManager $em |
|
| 23 | 23 | * @param Slugger $slugger |
| 24 | 24 | */ |
| 25 | 25 | public function __construct(EntityManager $em, Slugger $slugger) { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * @param string $name |
| 52 | 52 | * @param UserInterface $productOwner |
| 53 | - * @return \DevelopTech\AgilityBundle\ProjectModel |
|
| 53 | + * @return \Developtech\AgilityBundle\Model\ProjectModel |
|
| 54 | 54 | */ |
| 55 | 55 | public function createProject($name, UserInterface $productOwner) { |
| 56 | 56 | $project = |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Model\ProjectModel; |
| 8 | 7 | |
| 9 | 8 | class FeedbackManager { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @param CLassMetadata $metadata |
|
| 60 | + * @param ClassMetadata $metadata |
|
| 61 | 61 | * @param UnderscoreNamingStrategy $namingStrategy |
| 62 | 62 | */ |
| 63 | 63 | public function mapProject(ClassMetadata $metadata, UnderscoreNamingStrategy $namingStrategy) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @param CLassMetadata $metadata |
|
| 75 | + * @param ClassMetadata $metadata |
|
| 76 | 76 | * @param UnderscoreNamingStrategy $namingStrategy |
| 77 | 77 | */ |
| 78 | 78 | public function mapFeature(ClassMetadata $metadata, UnderscoreNamingStrategy $namingStrategy) { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param CLassMetadata $metadata |
|
| 90 | + * @param ClassMetadata $metadata |
|
| 91 | 91 | * @param UnderscoreNamingStrategy $namingStrategy |
| 92 | 92 | */ |
| 93 | 93 | public function mapFeedback(ClassMetadata $metadata, UnderscoreNamingStrategy $namingStrategy) { |
@@ -3,13 +3,9 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Entity\Project; |
| 8 | - |
|
| 9 | 7 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 10 | - |
|
| 11 | 8 | use Symfony\Component\Security\Core\User\UserInterface; |
| 12 | - |
|
| 13 | 9 | use Developtech\AgilityBundle\Utils\Slugger; |
| 14 | 10 | |
| 15 | 11 | class ProjectManager { |
@@ -3,16 +3,11 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Model\ProjectModel; |
| 8 | 7 | use Developtech\AgilityBundle\Model\FeedbackModel; |
| 9 | - |
|
| 10 | 8 | use Developtech\AgilityBundle\Entity\Feedback; |
| 11 | - |
|
| 12 | 9 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 13 | - |
|
| 14 | 10 | use Developtech\AgilityBundle\Utils\Slugger; |
| 15 | - |
|
| 16 | 11 | use Symfony\Component\Security\Core\User\UserInterface; |
| 17 | 12 | |
| 18 | 13 | class FeedbackManager { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * @return FeatureModel |
|
| 126 | + * @return ProjectModel |
|
| 127 | 127 | */ |
| 128 | 128 | public function getProject() { |
| 129 | 129 | return $this->project; |
@@ -148,6 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | 150 | * @var integer $userValue |
| 151 | + * @param integer $userValue |
|
| 151 | 152 | * @return FeatureModel |
| 152 | 153 | */ |
| 153 | 154 | public function setUserValue($userValue) { |
@@ -203,7 +204,7 @@ discard block |
||
| 203 | 204 | * |
| 204 | 205 | * @param \DateTime $createdAt |
| 205 | 206 | * |
| 206 | - * @return ProjectModel |
|
| 207 | + * @return FeatureModel |
|
| 207 | 208 | */ |
| 208 | 209 | public function setCreatedAt($createdAt) |
| 209 | 210 | { |
@@ -227,7 +228,7 @@ discard block |
||
| 227 | 228 | * |
| 228 | 229 | * @param \DateTime $updatedAt |
| 229 | 230 | * |
| 230 | - * @return ProjectModel |
|
| 231 | + * @return FeatureModel |
|
| 231 | 232 | */ |
| 232 | 233 | public function setUpdatedAt($updatedAt) |
| 233 | 234 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Developtech\AgilityBundle\Model; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\Mapping as ORM; |
|
| 6 | - |
|
| 7 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
| 8 | 6 | |
| 9 | 7 | /** |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Model\ProjectModel; |
| 8 | 7 | use Developtech\AgilityBundle\Model\FeatureModel; |
| 9 | - |
|
| 10 | 8 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 11 | 9 | |
| 12 | 10 | class FeatureManager { |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | $this->assertEquals(3, $this->manager->countFeedbacksPerStatus((new Project())->setId(1), Feedback::STATUS_OPEN)); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @return \Doctrine\ORM\EntityManager |
|
| 76 | + */ |
|
| 74 | 77 | public function getEntityManagerMock() { |
| 75 | 78 | $entityManagerMock = $this |
| 76 | 79 | ->getMockBuilder('Doctrine\ORM\EntityManager') |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | $this->assertEquals(3, $this->manager->countFeedbacksPerStatus((new Project())->setId(1), Feedback::STATUS_OPEN)); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @return \Doctrine\ORM\EntityManager |
|
| 76 | + */ |
|
| 74 | 77 | public function getEntityManagerMock() { |
| 75 | 78 | $entityManagerMock = $this |
| 76 | 79 | ->getMockBuilder('Doctrine\ORM\EntityManager') |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace Developtech\AgilityBundle\Manager; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | - |
|
| 7 | 6 | use Developtech\AgilityBundle\Model\ProjectModel; |
| 8 | 7 | use Developtech\AgilityBundle\Model\FeatureModel; |
| 9 | - |
|
| 10 | 8 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 11 | 9 | |
| 12 | 10 | class FeatureManager { |