forked from Sylius/Sylius
-
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 Sylius#341 from stloyd/bugfix/doctrine_mapping
Fix for doctrine mappings issues in ShippingBundle.
- Loading branch information
Showing
6 changed files
with
70 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,37 @@ | |
|
||
namespace Sylius\Bundle\ShippingBundle\Model; | ||
|
||
use Sylius\Bundle\ShippingBundle\Model\ShippingMethodInterface; | ||
|
||
/** | ||
* Shipping method rule model. | ||
* | ||
* @author Saša Stamenković <[email protected]> | ||
*/ | ||
class Rule implements RuleInterface | ||
{ | ||
/** | ||
* Shipping rule identifier. | ||
* | ||
* @var mixed | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* Rule type. | ||
* | ||
* @var string | ||
*/ | ||
protected $type; | ||
|
||
/** | ||
* All extra configuration. | ||
* | ||
* @var array | ||
*/ | ||
protected $configuration; | ||
|
||
/** | ||
* @var ShippingMethodInterface | ||
*/ | ||
protected $method; | ||
|
||
public function __construct() | ||
|
@@ -35,31 +54,49 @@ public function getId() | |
return $this->id; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getType() | ||
{ | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setType($type) | ||
{ | ||
$this->type = $type; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getConfiguration() | ||
{ | ||
return $this->configuration; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setConfiguration(array $configuration) | ||
{ | ||
$this->configuration = $configuration; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getMethod() | ||
{ | ||
return $this->method; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setMethod(ShippingMethodInterface $method = null) | ||
{ | ||
$this->method = $method; | ||
|
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
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