atoulme | 425b6c8 | 2008-11-24 14:00:27 +0000 | [diff] [blame] | 1 | <?php |
| 2 | /******************************************************************************* |
| 3 | * Copyright (c) 2007-2008 Eclipse Foundation and others. |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * which accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Antoine Toulme, Intalio Inc. bug 248845: Refactoring generate1.php into different files with a functional approach |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | class Project { |
| 14 | public $id = ''; |
| 15 | public $version = ''; |
| 16 | |
| 17 | function Project($id, $version) { |
| 18 | $this->id = $id; |
| 19 | $this->version = $version; |
| 20 | } |
| 21 | |
| 22 | function toString() { |
| 23 | return "$id $version"; |
| 24 | } |
| 25 | } |