mirror of
https://github.com/kevin-DL/exercise_tracker_api.git
synced 2026-01-11 11:04:32 +00:00
40 lines
575 B
PHP
40 lines
575 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Exercise extends Model
|
|
{
|
|
/**
|
|
* The name of the exercise
|
|
* @var string
|
|
*/
|
|
protected $name;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'name'
|
|
];
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @param string $name
|
|
*/
|
|
public function setName(string $name): void
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
}
|