@@ -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 { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @param ProjectModel $project |
|
| 52 | + * @param ProjectModel $project |
|
| 53 | 53 | * @param string $name |
| 54 | 54 | * @param string $description |
| 55 | 55 | * @param integer $status |
@@ -41,13 +41,13 @@ |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param ProjectModel $project |
|
| 45 | - * @param UserInterface $author |
|
| 46 | - * @param array $orderBy |
|
| 47 | - * @param integer $limit |
|
| 48 | - * @param integer $offset |
|
| 49 | - * @return array |
|
| 50 | - */ |
|
| 44 | + * @param ProjectModel $project |
|
| 45 | + * @param UserInterface $author |
|
| 46 | + * @param array $orderBy |
|
| 47 | + * @param integer $limit |
|
| 48 | + * @param integer $offset |
|
| 49 | + * @return array |
|
| 50 | + */ |
|
| 51 | 51 | public function getProjectFeedbacksByAuthor(ProjectModel $project, UserInterface $author, $orderBy = null, $limit = null, $offset = null) { |
| 52 | 52 | return $this->em->getRepository($this->feedbackClass)->findBy([ |
| 53 | 53 | 'project' => $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 { |
@@ -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 { |
@@ -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 { |
@@ -3,12 +3,9 @@ |
||
| 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 | - |
|
| 12 | 9 | use Developtech\AgilityBundle\Utils\Slugger; |
| 13 | 10 | |
| 14 | 11 | class FeatureManager { |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | use Developtech\AgilityBundle\Utils\Slugger; |
| 7 | 7 | |
| 8 | 8 | abstract class JobManager { |
| 9 | - /** @var EntityManager **/ |
|
| 10 | - protected $em; |
|
| 11 | - /** @var Slugger **/ |
|
| 12 | - protected $slugger; |
|
| 9 | + /** @var EntityManager **/ |
|
| 10 | + protected $em; |
|
| 11 | + /** @var Slugger **/ |
|
| 12 | + protected $slugger; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * @param EntityManager $em |
|
| 16 | - * @param Slugger $slugger |
|
| 17 | - */ |
|
| 18 | - public function __construct(EntityManager $em, Slugger $slugger) { |
|
| 19 | - $this->em = $em; |
|
| 20 | - $this->slugger = $slugger; |
|
| 21 | - } |
|
| 14 | + /** |
|
| 15 | + * @param EntityManager $em |
|
| 16 | + * @param Slugger $slugger |
|
| 17 | + */ |
|
| 18 | + public function __construct(EntityManager $em, Slugger $slugger) { |
|
| 19 | + $this->em = $em; |
|
| 20 | + $this->slugger = $slugger; |
|
| 21 | + } |
|
| 22 | 22 | } |