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.
Php_RSS/fluxRSS/metier/Flux.php

42 lines
644 B

<?php
namespace metier;
class Flux
{
private int $id;
private string $flux;
public function __construct(string $flux, int $id=null){
$this->id =$id;
$this->flux = $flux;
}
/**
* @return string
*/
public function getFlux(): string
{
return $this->flux;
}
/**
* @param string $flux
*/
public function setFlux(string $flux): void
{
$this->flux = $flux;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
public function __toString(): string
{
return $this->id;
}
}