<?php
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.16.0.2388 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()
  {}

}
?>