| @@ 11-151 (lines=141) @@ | ||
| 8 | * |
|
| 9 | * @see http://schema.org/HowTo |
|
| 10 | */ |
|
| 11 | class HowTo extends CreativeWork |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * The estimated cost of the supply or supplies consumed when performing |
|
| 15 | * instructions. |
|
| 16 | * |
|
| 17 | * @param MonetaryAmount|MonetaryAmount[]|string|string[] $estimatedCost |
|
| 18 | * |
|
| 19 | * @return static |
|
| 20 | * |
|
| 21 | * @see http://schema.org/estimatedCost |
|
| 22 | */ |
|
| 23 | public function estimatedCost($estimatedCost) |
|
| 24 | { |
|
| 25 | return $this->setProperty('estimatedCost', $estimatedCost); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * The length of time it takes to perform instructions or a direction (not |
|
| 30 | * including time to prepare the supplies), in [ISO 8601 duration |
|
| 31 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 32 | * |
|
| 33 | * @param Duration|Duration[] $performTime |
|
| 34 | * |
|
| 35 | * @return static |
|
| 36 | * |
|
| 37 | * @see http://schema.org/performTime |
|
| 38 | */ |
|
| 39 | public function performTime($performTime) |
|
| 40 | { |
|
| 41 | return $this->setProperty('performTime', $performTime); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * The length of time it takes to prepare the items to be used in |
|
| 46 | * instructions or a direction, in [ISO 8601 duration |
|
| 47 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 48 | * |
|
| 49 | * @param Duration|Duration[] $prepTime |
|
| 50 | * |
|
| 51 | * @return static |
|
| 52 | * |
|
| 53 | * @see http://schema.org/prepTime |
|
| 54 | */ |
|
| 55 | public function prepTime($prepTime) |
|
| 56 | { |
|
| 57 | return $this->setProperty('prepTime', $prepTime); |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * A single step item (as HowToStep, text, document, video, etc.) or a |
|
| 62 | * HowToSection. |
|
| 63 | * |
|
| 64 | * @param CreativeWork|CreativeWork[]|HowToSection|HowToSection[]|HowToStep|HowToStep[]|string|string[] $step |
|
| 65 | * |
|
| 66 | * @return static |
|
| 67 | * |
|
| 68 | * @see http://schema.org/step |
|
| 69 | */ |
|
| 70 | public function step($step) |
|
| 71 | { |
|
| 72 | return $this->setProperty('step', $step); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * A single step item (as HowToStep, text, document, video, etc.) or a |
|
| 77 | * HowToSection (originally misnamed 'steps'; 'step' is preferred). |
|
| 78 | * |
|
| 79 | * @param CreativeWork|CreativeWork[]|ItemList|ItemList[]|string|string[] $steps |
|
| 80 | * |
|
| 81 | * @return static |
|
| 82 | * |
|
| 83 | * @see http://schema.org/steps |
|
| 84 | */ |
|
| 85 | public function steps($steps) |
|
| 86 | { |
|
| 87 | return $this->setProperty('steps', $steps); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * A sub-property of instrument. A supply consumed when performing |
|
| 92 | * instructions or a direction. |
|
| 93 | * |
|
| 94 | * @param HowToSupply|HowToSupply[]|string|string[] $supply |
|
| 95 | * |
|
| 96 | * @return static |
|
| 97 | * |
|
| 98 | * @see http://schema.org/supply |
|
| 99 | */ |
|
| 100 | public function supply($supply) |
|
| 101 | { |
|
| 102 | return $this->setProperty('supply', $supply); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * A sub property of instrument. An object used (but not consumed) when |
|
| 107 | * performing instructions or a direction. |
|
| 108 | * |
|
| 109 | * @param HowToTool|HowToTool[]|string|string[] $tool |
|
| 110 | * |
|
| 111 | * @return static |
|
| 112 | * |
|
| 113 | * @see http://schema.org/tool |
|
| 114 | */ |
|
| 115 | public function tool($tool) |
|
| 116 | { |
|
| 117 | return $this->setProperty('tool', $tool); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * The total time required to perform instructions or a direction (including |
|
| 122 | * time to prepare the supplies), in [ISO 8601 duration |
|
| 123 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 124 | * |
|
| 125 | * @param Duration|Duration[] $totalTime |
|
| 126 | * |
|
| 127 | * @return static |
|
| 128 | * |
|
| 129 | * @see http://schema.org/totalTime |
|
| 130 | */ |
|
| 131 | public function totalTime($totalTime) |
|
| 132 | { |
|
| 133 | return $this->setProperty('totalTime', $totalTime); |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * The quantity that results by performing instructions. For example, a |
|
| 138 | * paper airplane, 10 personalized candles. |
|
| 139 | * |
|
| 140 | * @param QuantitativeValue|QuantitativeValue[]|string|string[] $yield |
|
| 141 | * |
|
| 142 | * @return static |
|
| 143 | * |
|
| 144 | * @see http://schema.org/yield |
|
| 145 | */ |
|
| 146 | public function yield($yield) |
|
| 147 | { |
|
| 148 | return $this->setProperty('yield', $yield); |
|
| 149 | } |
|
| 150 | ||
| 151 | } |
|
| 152 | ||
| @@ 11-136 (lines=126) @@ | ||
| 8 | * |
|
| 9 | * @see http://schema.org/HowToDirection |
|
| 10 | */ |
|
| 11 | class HowToDirection extends ListItem |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * A media object representing the circumstances after performing this |
|
| 15 | * direction. |
|
| 16 | * |
|
| 17 | * @param MediaObject|MediaObject[]|string|string[] $afterMedia |
|
| 18 | * |
|
| 19 | * @return static |
|
| 20 | * |
|
| 21 | * @see http://schema.org/afterMedia |
|
| 22 | */ |
|
| 23 | public function afterMedia($afterMedia) |
|
| 24 | { |
|
| 25 | return $this->setProperty('afterMedia', $afterMedia); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * A media object representing the circumstances before performing this |
|
| 30 | * direction. |
|
| 31 | * |
|
| 32 | * @param MediaObject|MediaObject[]|string|string[] $beforeMedia |
|
| 33 | * |
|
| 34 | * @return static |
|
| 35 | * |
|
| 36 | * @see http://schema.org/beforeMedia |
|
| 37 | */ |
|
| 38 | public function beforeMedia($beforeMedia) |
|
| 39 | { |
|
| 40 | return $this->setProperty('beforeMedia', $beforeMedia); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * A media object representing the circumstances while performing this |
|
| 45 | * direction. |
|
| 46 | * |
|
| 47 | * @param MediaObject|MediaObject[]|string|string[] $duringMedia |
|
| 48 | * |
|
| 49 | * @return static |
|
| 50 | * |
|
| 51 | * @see http://schema.org/duringMedia |
|
| 52 | */ |
|
| 53 | public function duringMedia($duringMedia) |
|
| 54 | { |
|
| 55 | return $this->setProperty('duringMedia', $duringMedia); |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * The length of time it takes to perform instructions or a direction (not |
|
| 60 | * including time to prepare the supplies), in [ISO 8601 duration |
|
| 61 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 62 | * |
|
| 63 | * @param Duration|Duration[] $performTime |
|
| 64 | * |
|
| 65 | * @return static |
|
| 66 | * |
|
| 67 | * @see http://schema.org/performTime |
|
| 68 | */ |
|
| 69 | public function performTime($performTime) |
|
| 70 | { |
|
| 71 | return $this->setProperty('performTime', $performTime); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * The length of time it takes to prepare the items to be used in |
|
| 76 | * instructions or a direction, in [ISO 8601 duration |
|
| 77 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 78 | * |
|
| 79 | * @param Duration|Duration[] $prepTime |
|
| 80 | * |
|
| 81 | * @return static |
|
| 82 | * |
|
| 83 | * @see http://schema.org/prepTime |
|
| 84 | */ |
|
| 85 | public function prepTime($prepTime) |
|
| 86 | { |
|
| 87 | return $this->setProperty('prepTime', $prepTime); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * A sub-property of instrument. A supply consumed when performing |
|
| 92 | * instructions or a direction. |
|
| 93 | * |
|
| 94 | * @param HowToSupply|HowToSupply[]|string|string[] $supply |
|
| 95 | * |
|
| 96 | * @return static |
|
| 97 | * |
|
| 98 | * @see http://schema.org/supply |
|
| 99 | */ |
|
| 100 | public function supply($supply) |
|
| 101 | { |
|
| 102 | return $this->setProperty('supply', $supply); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * A sub property of instrument. An object used (but not consumed) when |
|
| 107 | * performing instructions or a direction. |
|
| 108 | * |
|
| 109 | * @param HowToTool|HowToTool[]|string|string[] $tool |
|
| 110 | * |
|
| 111 | * @return static |
|
| 112 | * |
|
| 113 | * @see http://schema.org/tool |
|
| 114 | */ |
|
| 115 | public function tool($tool) |
|
| 116 | { |
|
| 117 | return $this->setProperty('tool', $tool); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * The total time required to perform instructions or a direction (including |
|
| 122 | * time to prepare the supplies), in [ISO 8601 duration |
|
| 123 | * format](http://en.wikipedia.org/wiki/ISO_8601). |
|
| 124 | * |
|
| 125 | * @param Duration|Duration[] $totalTime |
|
| 126 | * |
|
| 127 | * @return static |
|
| 128 | * |
|
| 129 | * @see http://schema.org/totalTime |
|
| 130 | */ |
|
| 131 | public function totalTime($totalTime) |
|
| 132 | { |
|
| 133 | return $this->setProperty('totalTime', $totalTime); |
|
| 134 | } |
|
| 135 | ||
| 136 | } |
|
| 137 | ||