Code samples for PHP classes