PHP Classes

File: src/Plugin/AbstractCodeGenerator.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   src/Plugin/AbstractCodeGenerator.php   Download  
File: src/Plugin/AbstractCodeGenerator.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 1 year ago
Size: 1,016 bytes
 

 

Contents

Class file image Download
<?php

/**
 * AbstractCodegenerator.php
 *
 * Generic interface for code generators.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2025 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Plugin;

use Jaxon\Plugin\Code\JsCode;

abstract class AbstractCodeGenerator implements CodeGeneratorInterface
{
    /**
     * @inheritDoc
     */
    public function getHash(): string
    {
        return '';
    }

    /**
     * @inheritDoc
     */
    public function getCss(): string
    {
        return '';
    }

    /**
     * @inheritDoc
     */
    public function getJs(): string
    {
        return '';
    }

    /**
     * @inheritDoc
     */
    public function getScript(): string
    {
        return '';
    }

    /**
     * @inheritDoc
     */
    public function getJsCode(): ?JsCode
    {
        return null;
    }
}