Source of file TemplateDataSourceInterface.php

Size: 0,613 Bytes - Last Modified: 2019-06-27T09:09:04+00:00

/home/vagrant/www/document-templates/src/TemplateDataSources/TemplateDataSourceInterface.php

123456789101112131415161718192021222324252627282930
<?php

namespace BWF\DocumentTemplates\TemplateDataSources;

interface TemplateDataSourceInterface
{
    /**
     * Return the data to use in the template if the $useNamespace is true
     * the $this->name is used in the array as a key.
     *
     * @param boolean $useNamespace
     * @return array
     */
    public function getTemplateData($useNamespace = true);

    /**
     * @return string[]
     */
    public function getPlaceholders();

    /**
     * @param $namespace
     */
    public function setNamespace($namespace);

    /**
     * @return string
     */
    public function getNamespace();
}