1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- class DomainObject
- {
- private $stateA = 'checkout';
- private $stateB = 'checkout';
- public function getStateA()
- {
- return $this->stateA;
- }
- public function setStateA($state)
- {
- $this->stateA = $state;
- }
- public function getStateB()
- {
- return $this->stateB;
- }
- public function setStateB($state)
- {
- $this->stateB = $state;
- }
- public function setConfirmedNow()
- {
- var_dump('I (the object) am set confirmed at '.date('Y-m-d').'.');
- }
- }
|