From 84c2de22836730cf049dbf680b71cdcfe851e3d3 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Fri, 23 Nov 2018 17:02:02 +0100 Subject: [PATCH] Deleted LawModificator --- .../Modificator/Entity/LawModificator.php | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 application/src/Creator/Modificator/Entity/LawModificator.php diff --git a/application/src/Creator/Modificator/Entity/LawModificator.php b/application/src/Creator/Modificator/Entity/LawModificator.php deleted file mode 100644 index c220848..0000000 --- a/application/src/Creator/Modificator/Entity/LawModificator.php +++ /dev/null @@ -1,50 +0,0 @@ - $layerValue) { - foreach (RightType::getChoices() as $rightKey => $rightValue) { - $right = self::createRight($law, $node, $rightKey, $layerKey); - //$right->setRecieverGroup(self::createRecieverGroup($node, RecieverType::NODE)); - $law->getRights()->add($right); - } - } - } - - public static function createRight(LawInterface $law, RelationInterface $node, string $type, string $layer): RightInterface - { - $right = new Right(); - $right->setType($type); - $right->setLaw($law); - $right->setLayer($layer); - $right->setNode($node); - - return $right; - } - - public static function createRecieverGroup(RelationInterface $node, string $reciever): RecieverInterface - { - $recieverGroup = new Reciever(); - $recieverGroup->setNode($node); - $recieverGroup->setReciever($reciever); - - return $recieverGroup; - } -}