| 1 | <?php |
||
| 9 | class StatementOfAccount |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Statement[] |
||
| 13 | */ |
||
| 14 | protected $statements = array(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get statements |
||
| 18 | * |
||
| 19 | * @return Statement[] |
||
| 20 | */ |
||
| 21 | 1 | public function getStatements() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Set statements |
||
| 28 | * |
||
| 29 | * @param array $statements |
||
| 30 | * |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | 1 | public function setStatements(array $statements = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param Statement $statement |
||
| 42 | */ |
||
| 43 | 1 | public function addStatement(Statement $statement) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Gets statement for given date. |
||
| 50 | * |
||
| 51 | * @param string|\DateTime $date |
||
| 52 | * @return Statement|null |
||
| 53 | */ |
||
| 54 | public function getStatementForDate($date) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Checks if a statement with given date exists. |
||
| 71 | * |
||
| 72 | * @param string|\DateTime $date |
||
| 73 | * @return bool |
||
| 74 | */ |
||
| 75 | public function hasStatementForDate($date) |
||
| 83 | } |
||
| 84 |