refactor phpdoc block for BaseLoop::getArgDefinitions();

This commit is contained in:
Manuel Raynaud
2013-09-06 16:31:04 +02:00
parent 2dee65727d
commit 5b637598e9

View File

@@ -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