Compare commits
10 Commits
8899d7675c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 659fd268d0 | |||
| 87b1a4fbb6 | |||
| 519917eb0a | |||
| 6c0d64d1c6 | |||
| 8d0c26eaf9 | |||
| 0b2f97ef52 | |||
| ec3402183f | |||
| 2ef8abad55 | |||
| cf39ed4a38 | |||
| e891cebdc4 |
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,8 +1,4 @@
|
|||||||
# ---> Composer
|
composer.lock
|
||||||
composer.phar
|
composer.phar
|
||||||
|
/nbproject/
|
||||||
/vendor/
|
/vendor/
|
||||||
|
|
||||||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
|
|
||||||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
|
|
||||||
# composer.lock
|
|
||||||
|
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2025 Potter
|
Copyright (c) 2025 Jay Potter
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||||
|
|||||||
23
composer.json
Normal file
23
composer.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "potter/document",
|
||||||
|
"type": "library",
|
||||||
|
"require": {
|
||||||
|
"php": "^8.4",
|
||||||
|
"potter/renderable": "dev-main",
|
||||||
|
"potter/template": "dev-main",
|
||||||
|
"potter/nameable": "dev-main"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Potter\\Document\\": "src/Potter/Document/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jay Potter",
|
||||||
|
"email": "j@ypotter.ca"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minimum-stability": "dev"
|
||||||
|
}
|
||||||
14
src/Potter/Document/AbstractDocument.php
Normal file
14
src/Potter/Document/AbstractDocument.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Potter\Document;
|
||||||
|
|
||||||
|
use \Potter\Nameable\NameableTrait;
|
||||||
|
use \Potter\Renderable\Renderable;
|
||||||
|
use \Potter\Template\Engine\Aware\TemplateEngineAwareTrait;
|
||||||
|
|
||||||
|
abstract class AbstractDocument extends Renderable implements DocumentInterface
|
||||||
|
{
|
||||||
|
use NameableTrait, TemplateEngineAwareTrait;
|
||||||
|
}
|
||||||
10
src/Potter/Document/Document.php
Normal file
10
src/Potter/Document/Document.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Potter\Document;
|
||||||
|
|
||||||
|
abstract class Document extends AbstractDocument
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
14
src/Potter/Document/DocumentInterface.php
Normal file
14
src/Potter/Document/DocumentInterface.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Potter\Document;
|
||||||
|
|
||||||
|
use \Potter\Nameable\NameableInterface;
|
||||||
|
use \Potter\Renderable\RenderableInterface;
|
||||||
|
use \Potter\Template\Engine\Aware\TemplateEngineAwareInterface;
|
||||||
|
|
||||||
|
interface DocumentInterface extends NameableInterface, RenderableInterface, TemplateEngineAwareInterface
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user