Skip to content
Permalink
Browse files

initial php changes, still fails

  • Loading branch information...
fjtheknight committed Jun 3, 2019
1 parent 869de38 commit fdd5b83c30630a21a92d194b004943917460da20
Showing with 39 additions and 39 deletions.
  1. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignImmutableOptionalMany.ump
  2. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignImmutableOptionalN.ump
  3. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignMandatoryMany.ump
  4. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignOne.ump
  5. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignOneToOne.ump
  6. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AssociationAssignUndirectionalOne.ump
  7. +1 −1 UmpleToPhp/UmpleTLTemplates/constructor_AttributeAssignUnique.ump
  8. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ClassTemplateTest_Attributes.php.txt
  9. +4 −4 cruise.umple/test/cruise/umple/implementation/php/CodeInjectionTest_Association.php.txt
  10. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalMNTest.php.txt
  11. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalMStarTest.php.txt
  12. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalManyTest.php.txt
  13. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalNTest.php.txt
  14. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalOneTest.php.txt
  15. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ImmutableUnidirectionalOptionalNTest.php.txt
  16. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ManyToMNTest_Many.php.txt
  17. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ManyToMStarTest_Many.php.txt
  18. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ManyToNTest_Many.php.txt
  19. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToMNTest_MN.php.txt
  20. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToMandatoryManyTest_Many.php.txt
  21. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToManyTest_Many.php.txt
  22. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToNTest_N.php.txt
  23. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToOneTest_Association.php.txt
  24. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToOneTest_Association2.php.txt
  25. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToOptionalNTest_OptionalN.php.txt
  26. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OneToOptionalOneTest_Subordinate.php.txt
  27. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OptionalOneToMNTest_One.php.txt
  28. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OptionalOneToMStarTest_One.php.txt
  29. +1 −1 cruise.umple/test/cruise/umple/implementation/php/OptionalOneToNTest_One.php.txt
  30. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ReflexiveAssociationTest_OneSymmetric.php.txt
  31. +1 −1 ...e.umple/test/cruise/umple/implementation/php/ReflexiveAssociationTest_OneSymmetricNoParam.php.txt
  32. +1 −1 cruise.umple/test/cruise/umple/implementation/php/ReflexiveAssociationTest_OneToMany.php.txt
  33. +1 −1 cruise.umple/test/cruise/umple/implementation/php/UnidirectionalMNTest_Aware.php.txt
  34. +1 −1 cruise.umple/test/cruise/umple/implementation/php/UnidirectionalMStarTest_Aware.php.txt
  35. +1 −1 cruise.umple/test/cruise/umple/implementation/php/UnidirectionalNTest_Aware.php.txt
  36. +1 −1 cruise.umple/test/cruise/umple/implementation/php/UnidirectionalOneTest_Aware.php.txt
@@ -4,6 +4,6 @@ class UmpleToPhp {
$<<=gen.translate("didAddMany",av)>> = $<<=instanceIdentifier>>-><<=gen.translate("setManyMethod",av)>>($<<=gen.translate("parameterAll",av)>>);
if (!$<<=gen.translate("didAddMany",av)>>)
{
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must not have duplicate <<=gen.translate("associationMany",av)>>.");
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must not have duplicate <<=gen.translate("associationMany",av)>>. See http://manual.umple.org?RE001ViolationofImmutability.html");
}!>>
}
@@ -4,6 +4,6 @@ class UmpleToPhp {
$<<=gen.translate("didAddMany",av)>> = $<<=instanceIdentifier>>-><<=gen.translate("setManyMethod",av)>>($<<=gen.translate("parameterAll",av)>>);
if (!$<<=gen.translate("didAddMany",av)>>)
{
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must have <<=requiredNumber>> or fewer <<=gen.translate("associationMany",av)>>, no duplicates.");
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must have <<=requiredNumber>> or fewer <<=gen.translate("associationMany",av)>>, no duplicates. See http://manual.umple.org?RE001ViolationofImmutability.html");
}!>>
}
@@ -19,6 +19,6 @@ class UmpleToPhp {
$<<=gen.translate("didAddMany",av)>> = $<<=instanceIdentifier>>-><<=gen.translate("setManyMethod",av)>>($<<=gen.translate("parameterAll",av)>>);
if (!$<<=gen.translate("didAddMany",av)>>)
{
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must have <<=requiredNumber>> <<=gen.translate("associationMany",av)>>");
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>>, must have <<=requiredNumber>> <<=gen.translate("associationMany",av)>>. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}!>>
}
@@ -3,6 +3,6 @@ class UmpleToPhp {
$<<=gen.translate("didAdd",av)>> = $<<=instanceIdentifier>>-><<=gen.translate("setMethod",av)>>($<<=gen.translate("parameterOne",av)>>);
if (!$<<=gen.translate("didAdd",av)>>)
{
throw new Exception("Unable to create <<=gen.relatedTranslate("associationOne",av)>> due to <<=gen.translate("associationOne",av)>>");
throw new Exception("Unable to create <<=gen.relatedTranslate("associationOne",av)>> due to <<=gen.translate("associationOne",av)>>. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}!>>
}
@@ -2,7 +2,7 @@ class UmpleToPhp {
constructor_AssociationAssignOneToOne <<!<</*constructor_AssociationAssignOneToOne*/>>
if ($<<=gen.translate("parameterOne",av)>> == null || $<<=gen.translate("parameterOne",av)>>-><<=gen.relatedTranslate("getMethod",av)>>() != null)
{
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>> due to <<=gen.translate("parameterOne",av)>>");
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>> due to <<=gen.translate("parameterOne",av)>>. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$<<=instanceIdentifier>>-><<=gen.translate("associationOne",av)>> = $<<=gen.translate("parameterOne",av)>>;!>>
}
@@ -2,6 +2,6 @@ class UmpleToPhp {
constructor_AssociationAssignUndirectionalOne <<!<</*constructor_AssociationAssignUndirectionalOne*/>>
if (!$<<=instanceIdentifier>>-><<=gen.translate("setMethod",av)>>($<<=gen.translate("parameterOne",av)>>))
{
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>> due to <<=gen.translate("parameterOne",av)>>");
throw new Exception("Unable to create <<=gen.relatedTranslate("type",av)>> due to <<=gen.translate("parameterOne",av)>>. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}!>>
}
@@ -2,6 +2,6 @@ class UmpleToPhp {
constructor_AttributeAssignUnique <<!<</*constructor_AttributeAssignUnique*/>>
if (!$this-><<=gen.translate("setMethod", av)>>($<<=gen.translate("parameterOne", av)>>))
{
throw new RuntimeException("Cannot create due to duplicate <<=av.getName()>>");
throw new RuntimeException("Cannot create due to duplicate <<=av.getName()>>. See http://manual.umple.org?RE003ViolationofUniqueness.html");
}!>>
}
@@ -71,7 +71,7 @@ class Mentor
$this->x = self::$nextX++;
if (!$this->setId($aId))
{
throw new RuntimeException("Cannot create due to duplicate id");
throw new RuntimeException("Cannot create due to duplicate id. See http://manual.umple.org?RE003ViolationofUniqueness.html");
}
}

@@ -26,25 +26,25 @@ class Student
$didAddM2 = $this->setM2($aM2);
if (!$didAddM2)
{
throw new Exception("Unable to create two due to m2");
throw new Exception("Unable to create two due to m2. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->m3s = array();
$didAddM3s = $this->setM3s($allM3s);
if (!$didAddM3s)
{
throw new Exception("Unable to create Student, must have 1 to 3 m3s");
throw new Exception("Unable to create Student, must have 1 to 3 m3s. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->m4s = array();
$didAddM4s = $this->setM4s($allM4s);
if (!$didAddM4s)
{
throw new Exception("Unable to create Student, must have 4 to 7 m4s");
throw new Exception("Unable to create Student, must have 4 to 7 m4s. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->m5s = array();
$didAddM5s = $this->setM5s($allM5s);
if (!$didAddM5s)
{
throw new Exception("Unable to create Student, must have at least 2 m5s");
throw new Exception("Unable to create Student, must have at least 2 m5s. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->m6s = array();
}
@@ -30,7 +30,7 @@ class Student
$didAddMentors = $this->setMentors($allMentors);
if (!$didAddMentors)
{
throw new Exception("Unable to create Student, must have 2 to 4 mentors");
throw new Exception("Unable to create Student, must have 2 to 4 mentors. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -30,7 +30,7 @@ class Student
$didAddMentors = $this->setMentors($allMentors);
if (!$didAddMentors)
{
throw new Exception("Unable to create Student, must have at least 1 mentors");
throw new Exception("Unable to create Student, must have at least 1 mentors. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -30,7 +30,7 @@ class Student
$didAddMentors = $this->setMentors($allMentors);
if (!$didAddMentors)
{
throw new Exception("Unable to create Student, must not have duplicate mentors.");
throw new Exception("Unable to create Student, must not have duplicate mentors. See http://manual.umple.org?RE001ViolationofImmutability.html");
}
}

@@ -30,7 +30,7 @@ class Student
$didAddMentors = $this->setMentors($allMentors);
if (!$didAddMentors)
{
throw new Exception("Unable to create Student, must have 3 mentors");
throw new Exception("Unable to create Student, must have 3 mentors. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -28,7 +28,7 @@ class Student
$this->canSetMentor = true;
if (!$this->setMentor($aMentor))
{
throw new Exception("Unable to create Student due to aMentor");
throw new Exception("Unable to create Student due to aMentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -30,7 +30,7 @@ class Student
$didAddMentors = $this->setMentors($allMentors);
if (!$didAddMentors)
{
throw new Exception("Unable to create Student, must have 3 or fewer mentors, no duplicates.");
throw new Exception("Unable to create Student, must have 3 or fewer mentors, no duplicates. See http://manual.umple.org?RE001ViolationofImmutability.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 3 to 4 students");
throw new Exception("Unable to create Mentor, must have 3 to 4 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have at least 4 students");
throw new Exception("Unable to create Mentor, must have at least 4 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 2 students");
throw new Exception("Unable to create Mentor, must have 2 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -25,7 +25,7 @@ class Pupil
$didAddMentor = $this->setMentor($aMentor);
if (!$didAddMentor)
{
throw new Exception("Unable to create pupil due to mentor");
throw new Exception("Unable to create pupil due to mentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -25,7 +25,7 @@ class Student
$didAddMentor = $this->setMentor($aMentor);
if (!$didAddMentor)
{
throw new Exception("Unable to create student due to mentor");
throw new Exception("Unable to create student due to mentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -25,7 +25,7 @@ class Student
$didAddMentor = $this->setMentor($aMentor);
if (!$didAddMentor)
{
throw new Exception("Unable to create student due to mentor");
throw new Exception("Unable to create student due to mentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -25,7 +25,7 @@ class Student
$didAddMentor = $this->setMentor($aMentor);
if (!$didAddMentor)
{
throw new Exception("Unable to create student due to mentor");
throw new Exception("Unable to create student due to mentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -28,7 +28,7 @@ class Mentor
$this->id = NULL;
if ($aStudent == null || $aStudent->getMentor() != null)
{
throw new Exception("Unable to create Mentor due to aStudent");
throw new Exception("Unable to create Mentor due to aStudent. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->student = $aStudent;
}
@@ -28,7 +28,7 @@ class Student
$this->number = $aNumber;
if ($aMentor == null || $aMentor->getStudent() != null)
{
throw new Exception("Unable to create Student due to aMentor");
throw new Exception("Unable to create Student due to aMentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->mentor = $aMentor;
}
@@ -25,7 +25,7 @@ class Student
$didAddMentor = $this->setMentor($aMentor);
if (!$didAddMentor)
{
throw new Exception("Unable to create student due to mentor");
throw new Exception("Unable to create student due to mentor. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -25,7 +25,7 @@ class MySubordinate
$didAddMyDriver = $this->setMyDriver($aMyDriver);
if (!$didAddMyDriver)
{
throw new Exception("Unable to create mySubordinate due to myDriver");
throw new Exception("Unable to create mySubordinate due to myDriver. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 3 to 4 students");
throw new Exception("Unable to create Mentor, must have 3 to 4 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have at least 5 students");
throw new Exception("Unable to create Mentor, must have at least 5 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 3 students");
throw new Exception("Unable to create Mentor, must have 3 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -28,7 +28,7 @@ class OneSymmetric
$this->number = $aNumber;
if ($aFriend == null || $aFriend->getFriend() != null)
{
throw new Exception("Unable to create OneSymmetric due to aFriend");
throw new Exception("Unable to create OneSymmetric due to aFriend. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->friend = $aFriend;
}
@@ -22,7 +22,7 @@ class OneSymmetricNoParam

if ($aFriend == null || $aFriend->getFriend() != null)
{
throw new Exception("Unable to create OneSymmetricNoParam due to aFriend");
throw new Exception("Unable to create OneSymmetricNoParam due to aFriend. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
$this->friend = $aFriend;
}
@@ -20,7 +20,7 @@ class OneToMany
{
if (!$this->setOneToMany($aOneToMany))
{
throw new Exception("Unable to create OneToMany due to aOneToMany");
throw new Exception("Unable to create OneToMany due to aOneToMany. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 3 to 7 students");
throw new Exception("Unable to create Mentor, must have 3 to 7 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have at least 1 students");
throw new Exception("Unable to create Mentor, must have at least 1 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -26,7 +26,7 @@ class Mentor
$didAddStudents = $this->setStudents($allStudents);
if (!$didAddStudents)
{
throw new Exception("Unable to create Mentor, must have 4 students");
throw new Exception("Unable to create Mentor, must have 4 students. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

@@ -24,7 +24,7 @@ class Mentor
$this->name = $aName;
if (!$this->setStudent($aStudent))
{
throw new Exception("Unable to create Mentor due to aStudent");
throw new Exception("Unable to create Mentor due to aStudent. See http://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
}
}

0 comments on commit fdd5b83

Please sign in to comment.
You can’t perform that action at this time.