-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 #3702 from tuka217/immutable-code-archetype
[Archetype] Introduce code for archetype
- Loading branch information
Showing
9 changed files
with
38 additions
and
20 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
use Doctrine\Common\Collections\Collection; | ||
use Sylius\Component\Attribute\Model\AttributeInterface as BaseAttributeInterface; | ||
use Sylius\Component\Resource\Model\CodeAwareInterface; | ||
use Sylius\Component\Resource\Model\TimestampableInterface; | ||
use Sylius\Component\Variation\Model\OptionInterface as BaseOptionInterface; | ||
|
||
|
@@ -24,7 +25,7 @@ | |
* @author Paweł Jędrzejewski <[email protected]> | ||
* @author Adam Elsodaney <[email protected]> | ||
*/ | ||
interface ArchetypeInterface extends TimestampableInterface, ArchetypeTranslationInterface | ||
interface ArchetypeInterface extends CodeAwareInterface, TimestampableInterface, ArchetypeTranslationInterface | ||
{ | ||
/** | ||
* Returns all prototype attributes. | ||
|
@@ -110,14 +111,4 @@ public function setParent(ArchetypeInterface $parent = null); | |
* @return null|ArchetypeInterface | ||
*/ | ||
public function getParent(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCode(); | ||
|
||
/** | ||
* @param string $code | ||
*/ | ||
public function setCode($code); | ||
} |