| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | 1 | public function createProductOwnerFeature(ProjectModel $project, $name, $description, $status, $productOwnerValue = null, $responsible = null) { |
|
| 41 | $feature = |
||
| 42 | 1 | (new Feature()) |
|
| 43 | 1 | ->setProject($project) |
|
| 44 | 1 | ->setFeatureType(Feature::FEATURE_TYPE_PRODUCT_OWNER) |
|
| 45 | 1 | ->setName($name) |
|
| 46 | 1 | ->setSlug($this->slugger->slugify($name)) |
|
| 47 | 1 | ->setDescription($description) |
|
| 48 | 1 | ->setStatus($status) |
|
| 49 | 1 | ->setProductOwnerValue($productOwnerValue) |
|
| 50 | 1 | ->setResponsible($responsible) |
|
| 51 | 1 | ; |
|
| 52 | 1 | $project->addFeature($feature); |
|
| 53 | 1 | $this->em->persist($feature); |
|
| 54 | 1 | $this->em->flush(); |
|
| 55 | 1 | return $feature; |
|
| 56 | } |
||
| 57 | } |
||
| 58 |