This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
src/Core/Model/Subscription Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 55
66namespace Commercetools \Core \Model \Subscription ;
77
8+ use Commercetools \Core \Model \Common \DateTimeDecorator ;
89use Commercetools \Core \Model \Common \Reference ;
10+ use DateTime ;
911
1012/**
1113 * @package Commercetools\Core\Model\Subscription
1719 * @method ResourceCreatedDelivery setResource(Reference $resource = null)
1820 * @method int getVersion()
1921 * @method ResourceCreatedDelivery setVersion(int $version = null)
22+ * @method DateTimeDecorator getModifiedAt()
23+ * @method ResourceCreatedDelivery setModifiedAt(DateTime $modifiedAt = null)
2024 */
2125class ResourceCreatedDelivery extends Delivery
2226{
2327 public function fieldDefinitions ()
2428 {
2529 $ definition = parent ::fieldDefinitions ();
2630 $ definition ['version ' ] = [static ::TYPE => 'int ' ];
31+ $ definition ['modifiedAt ' ] = [static ::TYPE => DateTime::class, static ::DECORATOR => DateTimeDecorator::class ];
2732 return $ definition ;
2833 }
2934}
Original file line number Diff line number Diff line change 55
66namespace Commercetools \Core \Model \Subscription ;
77
8+ use Commercetools \Core \Model \Common \DateTimeDecorator ;
89use Commercetools \Core \Model \Common \Reference ;
10+ use DateTime ;
911
1012/**
1113 * @package Commercetools\Core\Model\Subscription
1719 * @method ResourceDeletedDelivery setResource(Reference $resource = null)
1820 * @method int getVersion()
1921 * @method ResourceDeletedDelivery setVersion(int $version = null)
22+ * @method DateTimeDecorator getModifiedAt()
23+ * @method ResourceDeletedDelivery setModifiedAt(DateTime $modifiedAt = null)
2024 */
2125class ResourceDeletedDelivery extends Delivery
2226{
2327 public function fieldDefinitions ()
2428 {
2529 $ definition = parent ::fieldDefinitions ();
2630 $ definition ['version ' ] = [static ::TYPE => 'int ' ];
31+ $ definition ['modifiedAt ' ] = [static ::TYPE => DateTime::class, static ::DECORATOR => DateTimeDecorator::class ];
32+
2733 return $ definition ;
2834 }
2935}
Original file line number Diff line number Diff line change 55
66namespace Commercetools \Core \Model \Subscription ;
77
8+ use Commercetools \Core \Model \Common \DateTimeDecorator ;
89use Commercetools \Core \Model \Common \Reference ;
10+ use DateTime ;
911
1012/**
1113 * @package Commercetools\Core\Model\Subscription
1921 * @method ResourceUpdatedDelivery setVersion(int $version = null)
2022 * @method int getOldVersion()
2123 * @method ResourceUpdatedDelivery setOldVersion(int $oldVersion = null)
24+ * @method DateTimeDecorator getModifiedAt()
25+ * @method ResourceUpdatedDelivery setModifiedAt(DateTime $modifiedAt = null)
2226 */
2327class ResourceUpdatedDelivery extends Delivery
2428{
@@ -27,6 +31,7 @@ public function fieldDefinitions()
2731 $ definition = parent ::fieldDefinitions ();
2832 $ definition ['version ' ] = [static ::TYPE => 'int ' ];
2933 $ definition ['oldVersion ' ] = [static ::TYPE => 'int ' ];
34+ $ definition ['modifiedAt ' ] = [static ::TYPE => DateTime::class, static ::DECORATOR => DateTimeDecorator::class ];
3035 return $ definition ;
3136 }
3237}
You can’t perform that action at this time.
0 commit comments