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