Skip to content

Commit

Permalink
[BUGFIX] extcode#4 - change validate annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lorenz committed Aug 17, 2018
1 parent c47d678 commit 6eea666
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Model/Product/AbstractProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ abstract class AbstractProduct extends \TYPO3\CMS\Extbase\DomainObject\AbstractE
* SKU
*
* @var string
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $sku = '';

/**
* Title
*
* @var string
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $title = '';

Expand Down
4 changes: 2 additions & 2 deletions Classes/Domain/Model/Product/FeVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class FeVariant extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
* SKU
*
* @var string
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $sku = '';

/**
* Title
*
* @var string
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $title = '';

Expand Down
4 changes: 2 additions & 2 deletions Classes/Domain/Model/Product/QuantityDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class QuantityDiscount extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
* Price
*
* @var float
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $price = 0.0;

/**
* Quantity (lower bound)
*
* @var int
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $quantity = 0;

Expand Down
4 changes: 2 additions & 2 deletions Classes/Domain/Model/Product/SpecialPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class SpecialPrice extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
* Title
*
* @var string
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $title = '';

/**
* Price
*
* @var float
* @TYPO3\CMS\Extbase\Annotation\Validate NotEmpty
* @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/
protected $price = 0.0;

Expand Down

0 comments on commit 6eea666

Please sign in to comment.