From d188bf1d00a94899fc6650f304cb5682c0c3fe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Tue, 8 Mar 2016 16:51:26 +0100 Subject: [PATCH] =?UTF-8?q?Change=20la=20direction=20des=20fl=C3=A8ches=20?= =?UTF-8?q?d'h=C3=A9ritage/impl=C3=A9mentation/utilisation=20de=20trait.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ça permet de placer les interfaces en haut. --- Model/Arrow/ExtendsClass.php | 6 ++++-- Model/Arrow/ImplementsInterface.php | 2 +- Model/Arrow/UsesTrait.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Model/Arrow/ExtendsClass.php b/Model/Arrow/ExtendsClass.php index 384541d..9a0c0d6 100644 --- a/Model/Arrow/ExtendsClass.php +++ b/Model/Arrow/ExtendsClass.php @@ -8,6 +8,8 @@ namespace Irstea\PlantUmlBundle\Model\Arrow; +use Irstea\PlantUmlBundle\Model\UmlNodeInterface; + /** * Description of ExtendsClass * @@ -15,8 +17,8 @@ namespace Irstea\PlantUmlBundle\Model\Arrow; */ 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, "<|--"); } } diff --git a/Model/Arrow/ImplementsInterface.php b/Model/Arrow/ImplementsInterface.php index dbdede8..bd7451b 100644 --- a/Model/Arrow/ImplementsInterface.php +++ b/Model/Arrow/ImplementsInterface.php @@ -20,6 +20,6 @@ class ImplementsInterface extends BaseArrow { public function __construct(UmlNodeInterface $source, Interface_ $target) { - parent::__construct($source, $target, "..|>"); + parent::__construct($target, $source, "<|.."); } } diff --git a/Model/Arrow/UsesTrait.php b/Model/Arrow/UsesTrait.php index 925284d..9d59279 100644 --- a/Model/Arrow/UsesTrait.php +++ b/Model/Arrow/UsesTrait.php @@ -20,6 +20,6 @@ class UsesTrait extends BaseArrow { public function __construct(UmlNodeInterface $source, Trait_ $trait) { - parent::__construct($source, $trait, "--|>"); + parent::__construct($trait, $source, "<|--"); } } -- GitLab