Skip to content

Commit

Permalink
[TASK] Possibility to register additional schema types
Browse files Browse the repository at this point in the history
Related: #38
  • Loading branch information
brotkrueml committed Mar 21, 2020
1 parent 1bd7a79 commit 95e63d5
Show file tree
Hide file tree
Showing 27 changed files with 1,139 additions and 782 deletions.
18 changes: 18 additions & 0 deletions Classes/Core/Model/WebPageElementTypeInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);

namespace Brotkrueml\Schema\Core\Model;

/*
* This file is part of the "schema" extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*/

/**
* The interface indicates a WebPageElement type
*/
interface WebPageElementTypeInterface
{
}
3 changes: 2 additions & 1 deletion Classes/Model/Type/SiteNavigationElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* A navigation element of the page.
*/
final class SiteNavigationElement extends AbstractType
final class SiteNavigationElement extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* A table on a Web page.
*/
final class Table extends AbstractType
final class Table extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/WPAdBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* An advertising section of the page.
*/
final class WPAdBlock extends AbstractType
final class WPAdBlock extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/WPFooter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* The footer section of the page.
*/
final class WPFooter extends AbstractType
final class WPFooter extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/WPHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* The header section of the page.
*/
final class WPHeader extends AbstractType
final class WPHeader extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/WPSideBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* A sidebar section of the page.
*/
final class WPSideBar extends AbstractType
final class WPSideBar extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
3 changes: 2 additions & 1 deletion Classes/Model/Type/WebPageElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

use Brotkrueml\Schema\Core\Model\AbstractType;
use Brotkrueml\Schema\Core\Model\WebPageElementTypeInterface;

/**
* A web page element, like a table or an image.
*/
final class WebPageElement extends AbstractType
final class WebPageElement extends AbstractType implements WebPageElementTypeInterface
{
protected $properties = [
'about' => null,
Expand Down
Loading

0 comments on commit 95e63d5

Please sign in to comment.