From 0a7811a8ba0c3c9e6fa71e759cc047958d8cc3cb Mon Sep 17 00:00:00 2001 From: Pierre Ducoudray Date: Tue, 7 Feb 2017 18:17:38 +0100 Subject: [PATCH] Minor fix for Sylius v1 --- Robots/Model/Rule.php | 12 +++++++++++- composer.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Robots/Model/Rule.php b/Robots/Model/Rule.php index 254dca3..c81c54f 100644 --- a/Robots/Model/Rule.php +++ b/Robots/Model/Rule.php @@ -7,10 +7,12 @@ namespace Dag\Component\Robots\Model; +use Sylius\Component\Resource\Model\ResourceInterface; + /** * @author Christian Daguerre */ -class Rule implements RuleInterface +class Rule implements RuleInterface, ResourceInterface { /** * @var int @@ -50,6 +52,14 @@ public function __construct() $this->createdAt = new \DateTime(); } + /** + * {@inheritdoc} + */ + public function getId() + { + return $this->id; + } + /** * {@inheritdoc} */ diff --git a/composer.json b/composer.json index 4bcdeec..def5ddc 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ { "name": "Christian Daguerre", "email": "christian@worldia.com"} ], "require": { - "php": ">=5.5.0", + "php": ">=5.6.0", "sylius/resource": "^1.0@dev", "sylius/resource-bundle": "^1.0@dev" },