SystemInformationRecord.php (1465B)
1 <?php 2 3 namespace PartKeepr\CoreBundle\System; 4 5 /** 6 * This class represents a system information record. 7 * 8 * This is basically a category, a name and a value. No logic included within 9 * the class. 10 * 11 * For example, records could hold: 12 * 13 * Name Value Category 14 * ===================================================================================== 15 * Doctrine ORM 2.1.0 Libraries 16 * Doctrine DBAL 2.1.0 Libraries 17 * Doctrine Migrations git-f87afe9223dbfecaaddb Libraries 18 * 19 * PHP Version 5.3.2 Server Software 20 * Operating System Linux (Funtoo Linux - baselayout 2.1.8) Server Software 21 */ 22 class SystemInformationRecord 23 { 24 /** 25 * Holds the category name. 26 * 27 * @var string 28 */ 29 public $category; 30 31 /** 32 * Holds the name. 33 * 34 * @var string 35 */ 36 public $name; 37 38 /** 39 * Holds the value. 40 * 41 * @var mixed 42 */ 43 public $value; 44 45 /** 46 * Creates a new system information record. 47 * 48 * @param string $name 49 * @param mixed $value 50 * @param string $category 51 */ 52 public function __construct($name, $value, $category) 53 { 54 $this->name = $name; 55 $this->value = $value; 56 $this->category = $category; 57 } 58 }