refactor phpdoc block for BaseLoop::getArgDefinitions();
This commit is contained in:
@@ -249,14 +249,25 @@ abstract class BaseLoop
|
|||||||
*
|
*
|
||||||
* public function defineArgs()
|
* public function defineArgs()
|
||||||
* {
|
* {
|
||||||
* return array (
|
* return new ArgumentCollection(
|
||||||
* "ref",
|
* Argument::createIntListTypeArgument('id'),
|
||||||
* "id" => "optional",
|
* new Argument(
|
||||||
* "stock" => array(
|
* 'ref',
|
||||||
* "optional",
|
* new TypeCollection(
|
||||||
* "default" => 10
|
* new Type\AlphaNumStringListType()
|
||||||
* )
|
* )
|
||||||
* );
|
* ),
|
||||||
|
* Argument::createIntListTypeArgument('category'),
|
||||||
|
* Argument::createBooleanTypeArgument('new'),
|
||||||
|
* Argument::createBooleanTypeArgument('promo'),
|
||||||
|
* Argument::createFloatTypeArgument('min_price'),
|
||||||
|
* Argument::createFloatTypeArgument('max_price'),
|
||||||
|
* Argument::createIntTypeArgument('min_stock'),
|
||||||
|
* Argument::createFloatTypeArgument('min_weight'),
|
||||||
|
* Argument::createFloatTypeArgument('max_weight'),
|
||||||
|
* Argument::createBooleanTypeArgument('current'),
|
||||||
|
*
|
||||||
|
* );
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* you can retrieve ref value using $this->ref
|
* you can retrieve ref value using $this->ref
|
||||||
|
|||||||
Reference in New Issue
Block a user