Skip to content

Commit

Permalink
fix: correct some code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Jun 29, 2019
1 parent 54518ca commit 677d960
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/josegonzalez/Queuesadilla/Engine/Base.php
Expand Up @@ -41,6 +41,7 @@ public function __construct(LoggerInterface $logger = null, $config = [])

return $this;
}

public function getJobClass()
{
return '\\josegonzalez\\Queuesadilla\\Job\\Base';
Expand Down
24 changes: 24 additions & 0 deletions src/josegonzalez/Queuesadilla/Engine/EngineInterface.php
Expand Up @@ -8,12 +8,36 @@
interface EngineInterface
{

/**
* Returns a string representation of the class name
*
* @return string
*/
public function getJobClass();

/**
* Gets a configuration setting
*
* @param array $settings an array of settings
* @param string $key a key to set or retrieve
* @param mixed $default a default value to return if the config value does not exist
*
* @return mixed
**/
public function setting($settings, $key, $default = null);

/**
* Creates a connection to the underlying engine datastore
*
* @return boolean
**/
public function connect();

/**
* Returns a connection to the underlying datastore
*
* @return mixed
**/
public function connection();

/**
Expand Down

0 comments on commit 677d960

Please sign in to comment.