-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rudimentary support for drafter v4
- Loading branch information
1 parent
4ef2c81
commit f24e508
Showing
17 changed files
with
468 additions
and
69 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
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
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
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
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
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
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
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
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,72 @@ | ||
<?php | ||
/** | ||
* This file contains the BaseTemplateGenerator.php. | ||
* | ||
* @package PHPDraft\Out | ||
* | ||
* @author Sean Molenaar<[email protected]> | ||
*/ | ||
|
||
namespace PHPDraft\Out; | ||
|
||
|
||
use Lukasoppermann\Httpstatus\Httpstatus; | ||
use PHPDraft\Model\Elements\ObjectStructureElement; | ||
|
||
abstract class BaseTemplateGenerator | ||
{ | ||
/** | ||
* Type of sorting to do on objects. | ||
* | ||
* @var int | ||
*/ | ||
public $sorting; | ||
/** | ||
* CSS Files to load. | ||
* | ||
* @var array | ||
*/ | ||
public $css = []; | ||
/** | ||
* JS Files to load. | ||
* | ||
* @var array | ||
*/ | ||
public $js = []; | ||
/** | ||
* JSON object of the API blueprint. | ||
* | ||
* @var mixed | ||
*/ | ||
protected $categories = []; | ||
/** | ||
* The template file to load. | ||
* | ||
* @var string | ||
*/ | ||
protected $template; | ||
/** | ||
* The image to use as a logo. | ||
* | ||
* @var string | ||
*/ | ||
protected $image = null; | ||
/** | ||
* The base URl of the API. | ||
* | ||
* @var | ||
*/ | ||
protected $base_data; | ||
/** | ||
* The Http Status resolver. | ||
* | ||
* @var Httpstatus | ||
*/ | ||
protected $http_status; | ||
/** | ||
* Structures used in all data. | ||
* | ||
* @var ObjectStructureElement[] | ||
*/ | ||
protected $base_structures = []; | ||
} |
Oops, something went wrong.