-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from GrahamCampbell/tweaks
Tweaks
- Loading branch information
Showing
2 changed files
with
111 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,18 @@ | |
* | ||
* @see League\FactoryMuffin\FactoryMuffin | ||
* | ||
* @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 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 void loadFactories(string|string[] $paths) Load the specified factories. | ||
* | ||
* @package League\FactoryMuffin\Facades | ||
* @author Zizaco <[email protected]> | ||
* @author Scott Robertson <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters