You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.1 KiB
63 lines
1.1 KiB
<?php
|
|
|
|
namespace App\metier;
|
|
|
|
class Image
|
|
{
|
|
private int $id;
|
|
private string $name;
|
|
|
|
private string $taille;
|
|
|
|
private string $type;
|
|
|
|
private string $blob;
|
|
|
|
/**
|
|
* @param int $id
|
|
* @param string $name
|
|
* @param string $taille
|
|
* @param string $type
|
|
* @param string $blob
|
|
*/
|
|
public function __construct(int $id, string $name, string $taille, string $type, string $blob)
|
|
{
|
|
$this->id = $id;
|
|
$this->name = $name;
|
|
$this->taille = $taille;
|
|
$this->type = $type;
|
|
$this->blob = $blob;
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
|
|
public function getTaille(): string
|
|
{
|
|
return $this->taille;
|
|
}
|
|
|
|
public function getType(): string
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
public function getBlob(): string
|
|
{
|
|
return $this->blob;
|
|
}
|
|
|
|
public function getId() : string
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function toString() : string {
|
|
return "Image : " . $this->name . " " . $this->taille . " " . $this->type . " blob " . $this->blob;
|
|
}
|
|
|
|
|
|
} |