1: <?php
2:
3: /**
4: * This class models a database
5: *
6: * @package Transip
7: * @class Db
8: * @author TransIP (support@transip.nl)
9: */
10: class Transip_Db
11: {
12: /**
13: * Database name
14: *
15: * @var string;
16: */
17: public $name;
18:
19: /**
20: * Username for the database
21: *
22: * @var string
23: */
24: public $username;
25:
26: /**
27: * Max disk usage for the database
28: *
29: * @var int
30: */
31: public $maxDiskUsage;
32:
33: /**
34: * Create a Database Object
35: *
36: * @param string $name Database name
37: * @param string $username Database username
38: * @param string $password Database password
39: * @param string $maxDiskUsage maximum size of Database
40: */
41: public function __construct($name, $username = '', $maxDiskUsage = 100)
42: {
43: $this->name = $name;
44: $this->username = $username;
45: $this->maxDiskUsage = $maxDiskUsage;
46: }
47: }
48:
49: ?>
50: