Commit d188bf1d authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Change la direction des flèches d'héritage/implémentation/utilisation de trait.

Ça permet de placer les interfaces en haut.
No related merge requests found
Showing with 6 additions and 4 deletions
+6 -4
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
namespace Irstea\PlantUmlBundle\Model\Arrow; namespace Irstea\PlantUmlBundle\Model\Arrow;
use Irstea\PlantUmlBundle\Model\UmlNodeInterface;
/** /**
* Description of ExtendsClass * Description of ExtendsClass
* *
...@@ -15,8 +17,8 @@ namespace Irstea\PlantUmlBundle\Model\Arrow; ...@@ -15,8 +17,8 @@ namespace Irstea\PlantUmlBundle\Model\Arrow;
*/ */
class ExtendsClass extends BaseArrow class ExtendsClass extends BaseArrow
{ {
public function __construct(\Irstea\PlantUmlBundle\Model\UmlNodeInterface $source, \Irstea\PlantUmlBundle\Model\UmlNodeInterface $target, $link = "--", $label = null) public function __construct(UmlNodeInterface $source, UmlNodeInterface $target)
{ {
parent::__construct($source, $target, $link, $label); parent::__construct($target, $source, "<|--");
} }
} }
...@@ -20,6 +20,6 @@ class ImplementsInterface extends BaseArrow ...@@ -20,6 +20,6 @@ class ImplementsInterface extends BaseArrow
{ {
public function __construct(UmlNodeInterface $source, Interface_ $target) public function __construct(UmlNodeInterface $source, Interface_ $target)
{ {
parent::__construct($source, $target, "..|>"); parent::__construct($target, $source, "<|..");
} }
} }
...@@ -20,6 +20,6 @@ class UsesTrait extends BaseArrow ...@@ -20,6 +20,6 @@ class UsesTrait extends BaseArrow
{ {
public function __construct(UmlNodeInterface $source, Trait_ $trait) public function __construct(UmlNodeInterface $source, Trait_ $trait)
{ {
parent::__construct($source, $trait, "--|>"); parent::__construct($trait, $source, "<|--");
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment