Changeset 1896 for framework/trunk/src/test/php/net/stubbles/rdbms/persistence/MockSinglePrimaryKeyEntity.php
- Timestamp:
- 10/23/08 19:37:46 (23 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
framework/trunk/src/test/php/net/stubbles/rdbms/persistence/MockSinglePrimaryKeyEntity.php
r1763 r1896 6 6 * @subpackage rdbms_persistence_test 7 7 */ 8 stubClassLoader::load('net::stubbles::lang::types::stubDate'); 8 9 /** 9 10 * This is a mocked entity that has some annotations. … … 34 35 */ 35 36 protected $id; 37 /** 38 * a date instance 39 * 40 * @var stubDate 41 */ 42 protected $date; 36 43 37 44 /** … … 101 108 return $this->defaultValue; 102 109 } 110 111 /** 112 * sets the date instance 113 * 114 * @param stubDate $date 115 */ 116 public function setDate(stubDate $date) 117 { 118 $this->date = $date; 119 } 120 121 /** 122 * method that returns a date instance 123 * 124 * @return stubDate 125 * @DBColumn(name='date', type='DATETIME', setterMethod='setDate') 126 */ 127 public function withDate() 128 { 129 return $this->date; 130 } 103 131 } 104 132 ?>
