Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 21, 2017
1 parent 6f5bc33 commit 21026b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions Database/ModelIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ class ModelIdentifier
public $id;

/**
* The connection name of the model.
* The relationships loaded on the model.
*
* @var string|null
* @var array
*/
public $connection;
public $relations;

/**
* The relationships loaded on the model.
* The connection name of the model.
*
* @var array
* @var string|null
*/
public $relations;
public $connection;

/**
* Create a new model identifier.
*
* @param string $class
* @param mixed $id
* @param mixed $connection
* @param array $relations
* @param mixed $connection
* @return void
*/
public function __construct($class, $id, $connection, $relations)
public function __construct($class, $id, array $relations, $connection)
{
$this->id = $id;
$this->class = $class;
$this->connection = $connection;
$this->relations = $relations;
$this->connection = $connection;
}
}
12 changes: 6 additions & 6 deletions Queue/QueueableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ public function getQueueableClass();
public function getQueueableIds();

/**
* Get the connection of the entities being queued.
* Get the relationships of the entities being queued.
*
* @return string|null
* @return array
*/
public function getQueueableConnection();
public function getQueueableRelations();

/**
* Get the relationships of the entities being queued.
* Get the connection of the entities being queued.
*
* @return array
* @return string|null
*/
public function getQueueableRelations();
public function getQueueableConnection();
}
12 changes: 6 additions & 6 deletions Queue/QueueableEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ interface QueueableEntity
public function getQueueableId();

/**
* Get the connection of the entity.
* Get the relationships for the entity.
*
* @return string|null
* @return array
*/
public function getQueueableConnection();
public function getQueueableRelations();

/**
* Get the relationships for the entity.
* Get the connection of the entity.
*
* @return array
* @return string|null
*/
public function getQueueableRelations();
public function getQueueableConnection();
}

0 comments on commit 21026b4

Please sign in to comment.