Skip to content

Commit

Permalink
Document optional variables and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 29, 2014
1 parent e8e3c0b commit d97da4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Facade/FactoryMuffin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*
* @method static void setSaveMethod(string $method) Set the method we use when saving objects.
* @method static void setDeleteMethod(string $method) Set the method we use when deleting objects.
* @method static object create(string $model, array $attr) Creates and saves in db an instance of the model.
* @method static object create(string $model, array $attr = array()) Creates and saves in db an instance of the model.
* @method static mixed save(object $object) Save our object to the db, and keep track of it.
* @method static object[] saved() Return an array of saved objects.
* @method static void deleteSaved() Call the delete method on any saved objects.
* @method static object instance(string $model, array $attr, bool $save) Return an instance of the model.
* @method static array attributesFor(string $model, array $attr, bool $save) Returns the mock attributes for the model.
* @method static void define(string $model, array $definition) Define a new model factory.
* @method static string|object generateAttr(string $kind, string $model, bool $save) Generate the attributes.
* @method static object instance(string $model, array $attr = array(), bool $save = false) Return an instance of the model.
* @method static array attributesFor(string $model, array $attr = array(), bool $save = false) Returns the mock attributes for the model.
* @method static void define(string $model, array $definition = array()) Define a new model factory.
* @method static string|object generateAttr(string $kind, string $model = null, bool $save = false) Generate the attributes.
* @method static void loadFactories(string|string[] $paths) Load the specified factories.
*
* @package League\FactoryMuffin\Facades
Expand Down

0 comments on commit d97da4b

Please sign in to comment.