All pastes #13371 Raw Edit

BaseEntity

public php v1 · immutable
#13371 ·published 2005-06-04 11:45 UTC
rendered paste body
<?php/* * PHPasteBin - A PasteBin written in PHP * Copyright (C) 2005 Jeroen Budts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. *//** * The base entity class. * * @abstract * @package be_lightyear_phpastebin * @subpackage entities * @filesource */class BaseEntity {	/**	 * The id of the entity.	 * @var int the id	 * @access private	 */	var $_id;	/**	 * Gets the id.	 */	function getId() {		return $this->_id;	}	/**	 * Sets the id.	 *	 * @param int $id the id of the entity	 */	function setId($id) {		$this->_id = $id;	}}?>