Location: PHPKode > projects > Recess PHP Framework > recess/recess/lang/codegen/CodeGenProperty.class.php
<?php
Library::import('recess.lang.codegen.CodeGenClassMember');
/**
 * @author Kris Jordan <hide@address.com>
 * @copyright 2008, 2009 Kris Jordan
 * @package Recess PHP Framework
 * @license MIT
 * @link http://www.recessframework.org/
 */
class CodeGenProperty extends CodeGenClassMember {
	
	function toCode($blockIndent = '') {
		$code = $this->doccomment->toCode($blockIndent, true);
		
		$property = '';
		
		$property = $this->accessLevel . ' ';
		
		if($this->isStatic) {
			$property .= CodeGen::STAT . ' ';
		}
		
		$property .= '$' . $this->name . ';' . CodeGen::NL;
		
		$code .= $blockIndent . $property;
		
		return $code;	
	}
	
}
?>
Return current item: Recess PHP Framework