-
Notifications
You must be signed in to change notification settings - Fork 35
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 #6 from easybill/billing-period
added BillingSpecifiedPeriod to model
- Loading branch information
Showing
4 changed files
with
126 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
namespace Easybill\ZUGFeRD\Model\Trade; | ||
|
||
use Easybill\ZUGFeRD\Model\Date; | ||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class BillingPeriod | ||
{ | ||
|
||
/** | ||
* @var Date | ||
* @JMS\Type("Easybill\ZUGFeRD\Model\Date") | ||
* @JMS\XmlElement(cdata=false,namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12") | ||
* @JMS\SerializedName("StartDateTime") | ||
*/ | ||
private $start; | ||
|
||
/** | ||
* @var Date | ||
* @JMS\Type("Easybill\ZUGFeRD\Model\Date") | ||
* @JMS\XmlElement(cdata=false,namespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12") | ||
* @JMS\SerializedName("EndDateTime") | ||
*/ | ||
private $end; | ||
|
||
/** | ||
* @param Date $start | ||
* @param Date $end | ||
*/ | ||
public function __construct(Date $start, Date $end) | ||
{ | ||
$this->start = $start; | ||
$this->end = $end; | ||
} | ||
|
||
/** | ||
* @return Date | ||
*/ | ||
public function getStart() | ||
{ | ||
return $this->start; | ||
} | ||
|
||
/** | ||
* @param Date $start | ||
* @return self | ||
*/ | ||
public function setStart($start) | ||
{ | ||
$this->start = $start; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return Date | ||
*/ | ||
public function getEnd() | ||
{ | ||
return $this->end; | ||
} | ||
|
||
/** | ||
* @param Date $end | ||
* @return self | ||
*/ | ||
public function setEnd($end) | ||
{ | ||
$this->end = $end; | ||
return $this; | ||
} | ||
|
||
} |
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