First pass at converting the accessor methods to PHP and formatting them properly