Return to Snippet

Revision: 43965
at April 4, 2011 10:44 by ryanstewart


Initial Code
<?php
class NationalForest
{
	/**
	 * @var int
	 */
	public $id = 0;
	
	/**
	 * @var string
	 */
	public $state = "";
	
	/**
	 * @var int
	 */
	public $area = 0;
	
	/**
	 * @var DateTime
	 */
	public $established = "";
	
	/**
	 * @var string
	 */
	public $closest_city = "";
	
	/**
	 * @var string
	 */
	public $name = "";
	
	public function __construct()
	{
		$this->id = 0;
		$this->state = "";
		$this->area = 0;
		$this->established = date("c");
		$this->closest_city = "";
		$this->name = "";	
	}
}
?>

Initial URL


Initial Description


Initial Title
PHP Value Object

Initial Tags
php

Initial Language
PHP