30 lines
623 B
PHP
30 lines
623 B
PHP
<?php
|
|
|
|
|
|
class Exercise
|
|
{
|
|
public $id, $name, $description, $amount, $type, $unit, $current;
|
|
|
|
/**
|
|
* Workout constructor.
|
|
* @param $id
|
|
* @param $name
|
|
* @param $description
|
|
* @param $amount
|
|
* @param $type
|
|
* @param $unit
|
|
* @param $current
|
|
*/
|
|
public function __construct($id, $name, $description, $amount, $type, $unit, $current = 0)
|
|
{
|
|
$this->id = $id;
|
|
$this->name = $name;
|
|
$this->description = $description;
|
|
$this->amount = $amount;
|
|
$this->type = $type;
|
|
$this->unit = $unit;
|
|
$this->current = $current;
|
|
}
|
|
|
|
|
|
} |