mirror of
https://github.com/Mibew/CanteenHTML5.git
synced 2025-02-05 13:34:42 +03:00
Make the project compatible with PHP8
This commit is contained in:
parent
91b4d067c9
commit
a29ea00c29
@ -12,11 +12,12 @@ namespace Canteen\HTML5
|
|||||||
* echo html('br');
|
* echo html('br');
|
||||||
*
|
*
|
||||||
* @class Node
|
* @class Node
|
||||||
|
* @extends Proto
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {String} [tag=null] The name of the tag
|
* @param {String} [tag=null] The name of the tag
|
||||||
* @param {Array|String} [attributes=null] The collection of tag attributes
|
* @param {Array|String} [attributes=null] The collection of tag attributes
|
||||||
*/
|
*/
|
||||||
class Node
|
class Node extends Proto
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The string name of the tag
|
* The string name of the tag
|
||||||
|
37
src/Proto.php
Normal file
37
src/Proto.php
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @module Canteen\HTML5
|
||||||
|
*/
|
||||||
|
namespace Canteen\HTML5
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Prototype class for all Canteen\HTML5 entities
|
||||||
|
*
|
||||||
|
* @class Proto
|
||||||
|
* @constructor
|
||||||
|
* @param {String} text the plain text string
|
||||||
|
*/
|
||||||
|
class Proto
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* General purpose getter to get attribute values
|
||||||
|
* @method __get
|
||||||
|
* @param {String} name The name of the property to set
|
||||||
|
*/
|
||||||
|
public function __get($name)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See if a property exists
|
||||||
|
* @method __isset
|
||||||
|
* @param {String} name The name of the attribute
|
||||||
|
*/
|
||||||
|
public function __isset($name)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user