forked from Bukashk0zzz/YmlGenerator
-
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.
Расширение функционала, добавление дополнительных тегов (Bukashk0zzz#23)
* Добавляет возможность управлять тегом store * Добавил возможность добавлять несколько категорий * Добавил возможность добавлять name для offer * Исправил ошибку после правки конфликта * Добавил тег condition описывающий работу с уцененными товарами * phpcs, php-cs-fixer * Tests
- Loading branch information
1 parent
9b1caf8
commit f1fc38e
Showing
15 changed files
with
505 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Bukashk0zzzYmlGenerator | ||
* | ||
* (c) Denis Golubovskiy <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Bukashk0zzz\YmlGenerator\Model\Offer; | ||
|
||
/** | ||
* Class OfferCondition | ||
*/ | ||
class OfferCondition | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $type; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $reasonText; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getReasonText() | ||
{ | ||
return $this->reasonText; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType() | ||
{ | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* Description text for the reason for markdowns | ||
* | ||
* @param string $reasonText | ||
* | ||
* @return $this | ||
*/ | ||
public function setReasonText($reasonText) | ||
{ | ||
$this->reasonText = $reasonText; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Set product condition | ||
* | ||
* @param string $type | ||
* | ||
* @return $this | ||
*/ | ||
public function setType($type) | ||
{ | ||
$this->type = $type; | ||
|
||
return $this; | ||
} | ||
} |
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
Oops, something went wrong.