-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
45 additions
and
16 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
use Latte\Engine; | ||
use Mk\Feed\Storage; | ||
use Nette\Object; | ||
use Nette\SmartObject; | ||
use Mk\Feed\FileEmptyException; | ||
use Mk\Feed\ItemIncompletedException; | ||
|
||
|
@@ -12,7 +12,9 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators | ||
*/ | ||
abstract class BaseGenerator extends Object implements IGenerator { | ||
abstract class BaseGenerator implements IGenerator { | ||
|
||
use SmartObject; | ||
|
||
/** @var bool true if some products added */ | ||
private $prepared = false; | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,11 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Zbozi | ||
*/ | ||
abstract class BaseItem extends Nette\Object implements Mk\Feed\Generators\IItem | ||
abstract class BaseItem implements Mk\Feed\Generators\IItem | ||
{ | ||
|
||
use Nette\SmartObject; | ||
|
||
/** | ||
* Validate item | ||
* @return bool return true if item is valid | ||
|
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 |
---|---|---|
|
@@ -10,8 +10,11 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Google | ||
*/ | ||
class Image extends Nette\Object | ||
class Image | ||
{ | ||
|
||
use Nette\SmartObject; | ||
|
||
/** @var string */ | ||
private $url; | ||
|
||
|
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 |
---|---|---|
|
@@ -10,8 +10,9 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Google | ||
*/ | ||
class ProductType extends Nette\Object { | ||
|
||
class ProductType{ | ||
|
||
use Nette\SmartObject; | ||
|
||
/** @var string */ | ||
protected $text; | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Heureka | ||
*/ | ||
class Delivery extends Nette\Object { | ||
class Delivery{ | ||
|
||
use Nette\SmartObject; | ||
|
||
CONST CESKA_POSTA = 'CESKA_POSTA', | ||
CESKA_POSTA_NA_POSTU = 'CESKA_POSTA_NA_POSTU', | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Heureka | ||
*/ | ||
class Gift extends Nette\Object { | ||
class Gift{ | ||
|
||
use Nette\SmartObject; | ||
|
||
/** @var string */ | ||
protected $name; | ||
|
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 |
---|---|---|
|
@@ -10,8 +10,11 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Heureka | ||
*/ | ||
class Image extends Nette\Object | ||
class Image | ||
{ | ||
|
||
use Nette\SmartObject; | ||
|
||
/** @var string */ | ||
private $url; | ||
|
||
|
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 |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Heureka | ||
*/ | ||
class Parameter extends Nette\Object { | ||
class Parameter{ | ||
|
||
use Nette\SmartObject; | ||
|
||
protected $name; | ||
protected $value; | ||
|
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 |
---|---|---|
|
@@ -10,8 +10,10 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Zbozi | ||
*/ | ||
class CategoryText extends Nette\Object { | ||
|
||
class CategoryText{ | ||
|
||
use Nette\SmartObject; | ||
|
||
|
||
/** @var string */ | ||
protected $text; | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,10 @@ | |
* @author Martin Knor <[email protected]> | ||
* @package Mk\Feed\Generators\Zbozi | ||
*/ | ||
class ExtraMessage extends Nette\Object { | ||
class ExtraMessage{ | ||
|
||
use Nette\SmartObject; | ||
|
||
CONST EXTENDED_WARRANTY = 'extended_warranty', | ||
FREE_ACCESSORIES = 'free_accessories', | ||
FREE_CASE = 'free_case', | ||
|
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