mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-06-08 13:35:30 +02:00
46 lines
841 B
PHP
46 lines
841 B
PHP
<?php
|
|
|
|
namespace AdService\SiteConfig;
|
|
|
|
abstract class AbstractSiteConfig
|
|
{
|
|
/**
|
|
* Nom du site
|
|
* @var string
|
|
*/
|
|
protected $site_name = "";
|
|
|
|
/**
|
|
* URL du site
|
|
* @var string
|
|
*/
|
|
protected $site_url = "";
|
|
|
|
/**
|
|
* Les devises acceptées par le site.
|
|
* @var array
|
|
*/
|
|
protected $currencies = array("€");
|
|
|
|
/**
|
|
* Indique si l'information d'une annonce pro ou particulier est disponible
|
|
* dans la liste d'annonce.
|
|
* @var bool
|
|
*/
|
|
protected $pro_visible = true;
|
|
|
|
/**
|
|
* Indique si le site fourni une date par annonce.
|
|
* @var bool
|
|
*/
|
|
protected $has_date = true;
|
|
|
|
/**
|
|
* @param string $name
|
|
* @return mixed
|
|
*/
|
|
public function getOption($name)
|
|
{
|
|
return isset($this->$name) ? $this->$name : null;
|
|
}
|
|
} |