-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from eccubevn/master-create-log
Master create log
- Loading branch information
Showing
12 changed files
with
493 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
namespace Plugin\Onepay\Entity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Table(name="plg_onepay_paid_logs") | ||
* @ORM\Entity(repositoryClass="Plugin\Onepay\Repository\PaidLogsRepository") | ||
*/ | ||
class PaidLogs | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @ORM\Column(name="id", type="integer", options={"unsigned": true}) | ||
* @ORM\Id() | ||
* @ORM\GeneratedValue(strategy="IDENTITY") | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @var \Eccube\Entity\Order | ||
* | ||
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Order", inversedBy="PaidLogs") | ||
* @ORM\JoinColumns({ | ||
* @ORM\JoinColumn(name="order_id", referencedColumnName="id") | ||
* }) | ||
*/ | ||
protected $Order; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(name="paid_information", type="text", nullable=true) | ||
*/ | ||
protected $paid_information; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param int $id | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
/** | ||
* @return \Eccube\Entity\Order | ||
*/ | ||
public function getOrder() | ||
{ | ||
return $this->Order; | ||
} | ||
|
||
/** | ||
* @param \Eccube\Entity\Order $Order | ||
*/ | ||
public function setOrder($Order) | ||
{ | ||
$this->Order = $Order; | ||
} | ||
|
||
/** | ||
* @param bool $assoc | ||
* @return mixed | ||
*/ | ||
public function getPaidInformation($assoc = false) | ||
{ | ||
return json_decode($this->paid_information, $assoc); | ||
} | ||
|
||
/** | ||
* @param string $paid_information | ||
*/ | ||
public function setPaidInformation($paid_information) | ||
{ | ||
$this->paid_information = $paid_information; | ||
} | ||
|
||
/** | ||
* @return \DateTime | ||
*/ | ||
public function getCreatedAt() | ||
{ | ||
return $this->created_at; | ||
} | ||
|
||
/** | ||
* @param \DateTime $created_at | ||
*/ | ||
public function setCreatedAt($created_at) | ||
{ | ||
$this->created_at = $created_at; | ||
} | ||
|
||
/** | ||
* @var \DateTime | ||
* | ||
* @ORM\Column(name="created_at", type="datetimetz") | ||
*/ | ||
protected $created_at; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.