-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
99 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace CyberSai\LaravelUSSD\Console\Commands; | ||
|
||
use Illuminate\Console\GeneratorCommand; | ||
|
||
class CreateViewGroup extends GeneratorCommand | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'command:name'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Create new USSD View Group'; | ||
|
||
protected $type = 'View Group'; | ||
|
||
protected function getStub() | ||
{ | ||
return __DIR__.'/Stubs/ussd_view_group.stub'; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace CyberSai\LaravelUSSD\Console\Commands; | ||
|
||
use Illuminate\Console\GeneratorCommand; | ||
|
||
|
||
class CreateViewValidator extends GeneratorCommand | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'command:name'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Create USSD View Validator'; | ||
|
||
protected $type = 'View Validator'; | ||
|
||
protected function getStub() | ||
{ | ||
return __DIR__.'/Stubs/ussd_view_validator.stub'; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace DummyNamespace; | ||
|
||
class DummyClass extends \Cybersai\Ussd\Templates\TemplateViewGroup | ||
{ | ||
public function __construct($request) | ||
{ | ||
$this->views = []; | ||
parent::__construct($request); | ||
} | ||
|
||
public function getSelectedView() | ||
{ | ||
// TODO: Implement getSelectedView() method. | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
namespace DummyNamespace; | ||
|
||
class DummyClass extends \Cybersai\Ussd\Templates\TemplateViewValidator | ||
{ | ||
public function __construct($request) | ||
{ | ||
$this->views = []; | ||
parent::__construct($request); | ||
} | ||
|
||
function getValidView() | ||
{ | ||
// TODO: Implement getValidView() method. | ||
} | ||
|
||
} |
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