-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
46 lines (37 loc) · 1.05 KB
/
functions.php
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
<?php
const VAT_PERCENT = 20;
function addNamesToList(array $list, string $name1, string $name2): array
{
array_push($list, $name1);
array_push($list, $name2);
return $list;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* @param float $netPrice
* @return float
*/
function calculateVAT(float $netPrice, float &$vat)
{
$vat = VAT_PERCENT * $netPrice / 100;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function setActivationStatus(bool $status)
{
if ($status == true) {
//...
} else {
//...
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Use the Urb-II algorithm to calibrate the system for gravitational fluctuations
* @return array
*/
function calibrateDensityMatrix()
{
$densityMatrix = [[0, 0], [1, 1]];
return $densityMatrix;
}
require_once("test/functions.php");