This repository was archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPizza.php
More file actions
82 lines (70 loc) · 1.28 KB
/
Pizza.php
File metadata and controls
82 lines (70 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* Created by PhpStorm.
* User: rv_000
* Date: 07.12.2017
* Time: 19:02
*/
/**
* Class Pizza
* @property string $name
* @property string $description
* @property float $price
* @property Ingridients[] $aIngridients
*
*/
class Pizza extends Object
{
private $aIng = [];
/**
* @return string
*/
public function getName()
{
return $this->getValueFromParams('name');
}
/**
* @param string $name
*/
public function setName($name)
{
$this->setValueForParam('name',$name);
}
/**
* @return string
*/
public function getDescription()
{
return $this->getValueFromParams('description');
}
/**
* @param string $description
*/
public function setDescription($description)
{
$this->setValueForParam('description',$description);
}
/**
* @return float
*/
public function getPrice()
{
return null;
}
/**
* @return Ingridients[]
*/
public function getAIngridients()
{
return $this->aIng;
}
/**
* @param Ingridients $aIngridients
* @return $this
*/
public function addtIngridient($aIngridients)
{
$this->aIng[] = $aIngridients;
return $this;
}
}