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
<?php | |
namespace App\Services; | |
use Collective\Html\FormBuilder; | |
class Macros extends FormBuilder | |
{ | |
/** | |
* Generate Bank drop down list | |
* |
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
<?php | |
namespace App\Providers; | |
use App\Services\Macros; | |
use Collective\Html\HtmlServiceProvider; | |
/** | |
* Class MacroServiceProvider | |
* @package App\Providers |
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
<?php | |
interface ConnectionInterface | |
{ | |
public function connect(); | |
} | |
class DbConnection implements ConnectionInterface | |
{ | |
/** |
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
<?php | |
class MySQLConnection | |
{ | |
/** | |
* db connection | |
*/ | |
public function connect() | |
{ | |
var_dump('MYSQL Connection'); | |
} |
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
<?php | |
interface WorkAbleInterface | |
{ | |
public function work(); | |
} | |
interface SleepAbleInterface | |
{ | |
public function sleep(); | |
} |
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
<?php | |
interface workerInterface | |
{ | |
public function work(); | |
public function sleep(); | |
} | |
class HumanWorker implements workerInterface | |
{ | |
public function work() |
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
<?php | |
interface LessonRepositoryInterface | |
{ | |
/** | |
* Fetch all records. | |
* | |
* @return array | |
*/ | |
public function getAll(); | |
} |
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
<?php | |
interface AreaInterface | |
{ | |
public function calculateArea(); | |
} | |
class Rectangle implements AreaInterface | |
{ | |
public $width; | |
public $height; |
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
<?php | |
class Rectangle | |
{ | |
public $width; | |
public $height; | |
public function __construct($width, $height) | |
{ | |
$this->width = $width; | |
$this->height = $height; | |
} |
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
<?php | |
namespace Report; | |
use Report\Repositories\OrdersRepository; | |
class OrdersReport | |
{ | |
protected $repo; | |
protected $formatter; | |
public function __construct(OrdersRepository $repo, OrdersOutPutInterface $formatter) |
NewerOlder