taylorotwell/eloquent — pull request #20 by ShawnMcCool (2012-03-07 20:27:52+00:00)
Title: Added Setters and Getters

pants = $value;
}

public function get_robot_pants()
{
return $this->pants;
}
}

// controller

$user = new User;
$user->robot_pants = 1;
echo $user->robot_pants;
// result: 1

Signed-off-by: Shawn McCool