add some classes files
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6f9d60fa27
commit
f0cf8d96a4
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
use Cassandra\Date;
|
||||
use Cassandra\Time;
|
||||
|
||||
class Activity
|
||||
{
|
||||
private int $idActivity;
|
||||
private String $type;
|
||||
private Date $date;
|
||||
private time $heureDebut;
|
||||
private time $heureFin;
|
||||
private int $effortRessenti;
|
||||
private float $variability;
|
||||
private float $variance;
|
||||
private float $standardDeviation;
|
||||
private float $average;
|
||||
private int $maximum;
|
||||
private int $minimum;
|
||||
private float $avrTemperature;
|
||||
private Data $arrayData;
|
||||
private function getActivity():Activity{
|
||||
return $this;
|
||||
}
|
||||
private function getAnalyse(Activity $activity):String{
|
||||
return $this->arrayData[$activity]->__to_String();
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
abstract class Data {
|
||||
private int $idData;
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
use Cassandra\Date;
|
||||
|
||||
class DataSource
|
||||
{
|
||||
private int $idSource;
|
||||
private enum $type;
|
||||
private String $model;
|
||||
private enum $precision;
|
||||
private Date $dateLastUse;
|
||||
public function getDataSource(DataSource $dataSource):String {
|
||||
return $this->__to_String($dataSource);
|
||||
}
|
||||
public function __to_String(DataSource $dataSource):String{
|
||||
return "Source de données :" . $dataSource;
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
use Cassandra\Time;
|
||||
|
||||
class HeartRate extends Data {
|
||||
private float $altitude;
|
||||
private time $time;
|
||||
private int $bpm;
|
||||
private float $longitude;
|
||||
private float $latitude;
|
||||
private float $temperature;
|
||||
public function getAltitude():String{
|
||||
return $this->altitude;
|
||||
}
|
||||
public function getTime():String{
|
||||
return $this->time;
|
||||
}
|
||||
public function getBpm():String{
|
||||
return $this->bpm;
|
||||
}
|
||||
public function getLongitude():String{
|
||||
return $this->longitude;
|
||||
}
|
||||
public function getLatitude():String{
|
||||
return $this->altitude;
|
||||
}
|
||||
public function getTemperature():String{
|
||||
return $this->temperature;
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
use Cassandra\Time;
|
||||
|
||||
class Statistic
|
||||
{
|
||||
private int $idStatistic;
|
||||
private float $totalDistance;
|
||||
private float $weight;
|
||||
private time $totalTime;
|
||||
private int $avrHeartRate;
|
||||
private int $minHeartRate;
|
||||
private int $maxHeartRate;
|
||||
private int $caloriesBurned;
|
||||
|
||||
public function getStatistic():Statistic{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __toString(Statistic $stat):String{
|
||||
return "Statistiques : " . $this->getStatistic();
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Model;
|
||||
|
||||
use Cassandra\Date;
|
||||
use SebastianBergmann\CodeCoverage\Report\Text;
|
||||
|
||||
class Training
|
||||
{
|
||||
private int $idTraining;
|
||||
private Date $date;
|
||||
private String $location;
|
||||
private text $description;
|
||||
private text $feedback;
|
||||
public function getId():String {
|
||||
return $this->getId();
|
||||
}
|
||||
public function getDate():String {
|
||||
return $this->date;
|
||||
}
|
||||
public function getLocation():String {
|
||||
return $this->location;
|
||||
}
|
||||
public function getDescription(): Text
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function getFeedback():Text {
|
||||
return $this->feedback;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue