Skip to content

Commit

Permalink
Merge pull request #2 from Pitoune/patch-1
Browse files Browse the repository at this point in the history
Minor fix for Sylius v1
  • Loading branch information
cdaguerre authored Feb 8, 2017
2 parents 527a563 + 0a7811a commit 7e40243
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Robots/Model/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

namespace Dag\Component\Robots\Model;

use Sylius\Component\Resource\Model\ResourceInterface;

/**
* @author Christian Daguerre <[email protected]>
*/
class Rule implements RuleInterface
class Rule implements RuleInterface, ResourceInterface
{
/**
* @var int
Expand Down Expand Up @@ -50,6 +52,14 @@ public function __construct()
$this->createdAt = new \DateTime();
}

/**
* {@inheritdoc}
*/
public function getId()
{
return $this->id;
}

/**
* {@inheritdoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{ "name": "Christian Daguerre", "email": "[email protected]"}
],
"require": {
"php": ">=5.5.0",
"php": ">=5.6.0",
"sylius/resource": "^1.0@dev",
"sylius/resource-bundle": "^1.0@dev"
},
Expand Down

0 comments on commit 7e40243

Please sign in to comment.