| 1 | <?php |
||
| 27 | class Resource |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Title |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $title; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Index |
||
| 38 | * @var integer |
||
| 39 | */ |
||
| 40 | private $index; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Index of Resource |
||
| 44 | * @var integer |
||
| 45 | */ |
||
| 46 | public static $lastIndex = 0; |
||
| 47 | |||
| 48 | 11 | public function __construct() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Get title |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 4 | public function getTitle() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Set title |
||
| 66 | * |
||
| 67 | * @param string $pTitle Title of the resource |
||
| 68 | * @return PHPProject_Resource |
||
| 69 | */ |
||
| 70 | 6 | public function setTitle($pTitle) |
|
| 75 | |||
| 76 | /** |
||
| 77 | * Get index |
||
| 78 | * |
||
| 79 | * @return index |
||
| 80 | */ |
||
| 81 | 8 | public function getIndex() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * Set index |
||
| 88 | * @param integer $value |
||
| 89 | */ |
||
| 90 | 5 | public function setIndex($value) |
|
| 97 | } |
||
| 98 |