public function __construct($card = null, $currency = null) { $this->date = gmdate('Y-m-d H:i:s'); $this->setCard($card); $this->setCurrency($currency); }