Skip to content

Commit

Permalink
Nette Object => Nette SmartObject
Browse files Browse the repository at this point in the history
  • Loading branch information
chomenko committed Sep 25, 2018
1 parent 50dee3a commit 414c76d
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 16 deletions.
6 changes: 4 additions & 2 deletions src/Generators/BaseGenerator.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/Generators/BaseItem.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/Generators/Google/Image.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 3 additions & 2 deletions src/Generators/Google/ProductType.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/Generators/Heureka/Delivery.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 3 additions & 1 deletion src/Generators/Heureka/Gift.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion src/Generators/Heureka/Image.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 3 additions & 1 deletion src/Generators/Heureka/Parameter.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/Generators/Zbozi/CategoryText.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion src/Generators/Zbozi/ExtraMessage.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 4 additions & 1 deletion src/Generators/Zbozi/Image.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

use Mk, Nette;

class Image extends Nette\Object {
class Image{

use Nette\SmartObject;

private $url;

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Generators/Zbozi/Parameter.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* @package Mk\Feed\Generators\Zbozi
* @see http://napoveda.seznam.cz/cz/zbozi/specifikace-xml-pro-obchody/specifikace-xml-feedu/#PARAM
*/
class Parameter extends Nette\Object {
class Parameter{

use Nette\SmartObject;

protected $name;
protected $value;
Expand Down
4 changes: 3 additions & 1 deletion src/Generators/Zbozi/ShopDepot.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Mk, Nette;

class ShopDepot extends Nette\Object {
class ShopDepot{

use Nette\SmartObject;

private $id;

Expand Down

0 comments on commit 414c76d

Please sign in to comment.