Source of file KSSParameter.php
Size: 1,403 Bytes - Last Modified: 2022-01-13T10:01:28+00:00
/var/www/docs.ssmods.com/process/src/code/model/KSSParameter.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 | <?php namespace BenManu\StyleGuide; use SilverStripe\View\ViewableData; class KSSParameter extends ViewableData { /** * @var KSSSection */ protected $section; /** * Name of the parameter * * @var string */ protected $name = ''; /** * Description of the parameter * * @var string */ protected $description = ''; private static $casting = array( 'Name' => 'Varchar', 'Description' => 'Varchar' ); public function __construct($name, $description = '', $section) { $this->section = $section; $this->setName($name); $this->setDescription($description); } /** * Returns the name of the parameter * * @return string */ public function getName() { return $this->name; } /** * Sets the name of the parameter * * @param string $name */ public function setName($name) { $this->name = $name; } /** * Returns the description of the parameter * * @return string */ public function getDescription() { return $this->description; } /** * Sets the description of the parameter * * @param string $description */ public function setDescription($description) { $this->description = $description; } } |