Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docblock Fixes #145

Merged
merged 3 commits into from
Jul 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exception/DeleteMethodNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DeleteMethodNotFound extends MethodNotFound
/**
* Create a new instance.
*
* @param string $model
* @param string $object
* @param string $method
* @param string $message
*
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/SaveMethodNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SaveMethodNotFound extends MethodNotFound
/**
* Create a new instance.
*
* @param string $model
* @param string $object
* @param string $method
* @param string $message
*
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryMuffin.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function define($model, array $definition = array())
*
* This method will return a string, or an instance of the model.
*
* @param string $kind The kind of attribute that will be generate.
* @param string $kind The kind of attribute that will be generated.
* @param string $model The name of the model class.
* @param bool $save Are we saving an object, or just creating an instance?
*
Expand Down
26 changes: 13 additions & 13 deletions src/Kind.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ abstract class Kind
);

/**
* Holds the Kind we are working on.
* The kind of attribute that will be generated.
*
* @type \League\FactoryMuffin\Kind
* @type string
*/
protected $kind;

/**
* Holds the model data.
* The name of the model class.
*
* @type array
* @type string
*/
protected $model;

/**
* Holds the faker factory.
* The faker factory or generator instance.
*
* @type \Faker\Factory
* @type \Faker\Factory|\Faker\Generator
*/
protected $faker;

Expand All @@ -63,10 +63,10 @@ abstract class Kind
/**
* Initialise our Kind.
*
* @param $kind
* @param $model
* @param $faker
* @param $save Have we saved the parent object, or just created an instance?
* @param string $kind The kind of attribute that will be generated.
* @param string $model The name of the model class.
* @param \Faker\Factory|\Faker\Generator $faker The faker factory or generator instance.
* @param bool $save Have we saved the parent object?
*/
public function __construct($kind, $model, $faker, $save = false)
{
Expand All @@ -79,9 +79,9 @@ public function __construct($kind, $model, $faker, $save = false)
/**
* Detect the type of Kind we are processing.
*
* @param mixed $kind
* @param array $model
* @param bool $save
* @param string $kind The kind of attribute that will be generated.
* @param string $model The name of the model class.
* @param bool $save Have we saved the parent object?
*
* @return \League\FactoryMuffin\Kind
*/
Expand Down