<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class X
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //X Attributes
  private $d;
  private $e;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aD, $aE)
  {
    $this->d = $aD;
    $this->e = $aE;
    if (strtotime($aD)<=strtotime($aE))
    {
      throw new RuntimeException("Please provide a valid d and e [d>e]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setD($aD)
  {
    $wasSet = false;
    if (strtotime($aD)>strtotime($this->getE()))
    {
    $this->d = $aD;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setE($aE)
  {
    $wasSet = false;
    if (strtotime($this->getD())>strtotime($aE))
    {
    $this->e = $aE;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function getD()
  {
    return $this->d;
  }

  public function getE()
  {
    return $this->e;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class Client
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //Client Attributes
  private $minAge;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aMinAge)
  {
    $this->minAge = $aMinAge;
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setMinAge($aMinAge)
  {
    $wasSet = false;
    $this->minAge = $aMinAge;
    $wasSet = true;
    return $wasSet;
  }

  public function getMinAge()
  {
    return $this->minAge;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

  public function someMethod($arg)
  {
    $result = someMethodOriginal($arg);
    if ($this->arg<=5)
    {
        throw new RuntimeException("Please provide a valid arg");
    }
    return $result;
  }

  public function someMethodOriginal($arg)
  {
    // rest of stuff that we don't interpret
   return 0;
  }

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class Client
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //Client Attributes
  private $minAge;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aMinAge)
  {
    $this->minAge = $aMinAge;
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setMinAge($aMinAge)
  {
    $wasSet = false;
    $this->minAge = $aMinAge;
    $wasSet = true;
    return $wasSet;
  }

  public function getMinAge()
  {
    return $this->minAge;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

  public function someMethod($arg)
  {

    if ($this->arg<=5)
    {
        throw new RuntimeException("Please provide a valid arg");
    }
    if ($this->getMinAge()>=8)
    {
        throw new RuntimeException("Please provide a valid minAge");
    }
    // rest of stuff that we don't interpret
    return 0;
  }

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class MultipleConstraints
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //MultipleConstraints Attributes
  private $i;
  private $j;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aI, $aJ)
  {
    $this->i = $aI;
    $this->j = $aJ;
    if ($aI<0)
    {
      throw new RuntimeException("Please provide a valid i [i>=0]");
    }
    if ($aJ<0)
    {
      throw new RuntimeException("Please provide a valid j [j>=0]");
    }
    if ($aI<$aJ)
    {
      throw new RuntimeException("Please provide a valid i and j [i>=j]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setI($aI)
  {
    $wasSet = false;
    if ($aI>=$this->getJ())
    {
    if ($aI>=0)
    {
    $this->i = $aI;
    $wasSet = true;
    }
    }
    return $wasSet;
  }

  public function setJ($aJ)
  {
    $wasSet = false;
    if ($aJ>=0)
    {
    if ($this->getI()>=$aJ)
    {
    $this->j = $aJ;
    $wasSet = true;
    }
    }
    return $wasSet;
  }

  public function getI()
  {
    return $this->i;
  }

  public function getJ()
  {
    return $this->j;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class student
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //student Attributes
  private $age;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aAge)
  {
    $this->age = $aAge;
    if ($aAge<=18)
    {
      throw new RuntimeException("Please provide a valid age [age>18]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setAge($aAge)
  {
    $wasSet = false;
    if ($aAge>18)
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

// attributes on both sides of the constraint's boolean expression
class Client
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //Client Attributes
  private $minAge;
  private $age;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aMinAge, $aAge)
  {
    $this->minAge = $aMinAge;
    $this->age = $aAge;
    if ($aAge<=$aMinAge)
    {
      throw new RuntimeException("Please provide a valid age and minAge [age>minAge]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setMinAge($aMinAge)
  {
    $wasSet = false;
    if ($this->getAge()>$aMinAge)
    {
    $this->minAge = $aMinAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setAge($aAge)
  {
    $wasSet = false;
    if ($aAge>$this->getMinAge())
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function getMinAge()
  {
    return $this->minAge;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class student
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //student Attributes
  private $age;
  private $weight;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aAge, $aWeight)
  {
    $this->age = $aAge;
    $this->weight = $aWeight;
    if ($aWeight>=3||$aAge<=18)
    {
      throw new RuntimeException("Please provide a valid age and weight [weight<3&&age>18]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setAge($aAge)
  {
    $wasSet = false;
    if ($this->getWeight()<3&&$aAge>18)
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setWeight($aWeight)
  {
    $wasSet = false;
    if ($aWeight<3&&$this->getAge()>18)
    {
    $this->weight = $aWeight;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function getWeight()
  {
    return $this->weight;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class student
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //student Attributes
  private $age;
  private $weight;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aAge, $aWeight)
  {
    $this->age = $aAge;
    $this->weight = $aWeight;
    if ($aWeight>=3&&$aAge<=18)
    {
      throw new RuntimeException("Please provide a valid age and weight [weight<3||age>18]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setAge($aAge)
  {
    $wasSet = false;
    if ($this->getWeight()<3||$aAge>18)
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setWeight($aWeight)
  {
    $wasSet = false;
    if ($aWeight<3||$this->getAge()>18)
    {
    $this->weight = $aWeight;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function getWeight()
  {
    return $this->weight;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class student
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //student Attributes
  private $age;
  private $weight;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aAge, $aWeight)
  {
    $this->age = $aAge;
    $this->weight = $aWeight;
    if (($aAge>18))
    {
      throw new RuntimeException("Please provide a valid age [age<=18]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setAge($aAge)
  {
    $wasSet = false;
    if (($aAge<=18))
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setWeight($aWeight)
  {
    $wasSet = false;
    $this->weight = $aWeight;
    $wasSet = true;
    return $wasSet;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function getWeight()
  {
    return $this->weight;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>
<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.33.0.6934.a386b0a58 modeling language!*/

class student
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //student Attributes
  private $age;
  private $weight;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public function __construct($aAge, $aWeight)
  {
    $this->age = $aAge;
    $this->weight = $aWeight;
    if ($aAge>=10||($aAge>=10))
    {
      throw new RuntimeException("Please provide a valid age [age<10&&age<10]");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public function setAge($aAge)
  {
    $wasSet = false;
    if ($aAge<10&&($aAge<10))
    {
    $this->age = $aAge;
    $wasSet = true;
    }
    return $wasSet;
  }

  public function setWeight($aWeight)
  {
    $wasSet = false;
    $this->weight = $aWeight;
    $wasSet = true;
    return $wasSet;
  }

  public function getAge()
  {
    return $this->age;
  }

  public function getWeight()
  {
    return $this->weight;
  }

  public function equals($compareTo)
  {
    return $this == $compareTo;
  }

  public function delete()
  {}

}
?>