for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AmineBenHariz\TunisianetScraper\Entity;
/**
* Class Category
* @package AmineBenHariz\TunisianetScraper\Entity
*/
class Category
{
* @var int
private $id;
* @var string
private $title;
private $url;
* @var Product[]
private $products;
* Category constructor.
* @param int $id
* @param string $title
* @param string $url
* @param Product[] $products
public function __construct($id, $title, $url, $products)
$this->id = $id;
$this->title = $title;
$this->url = $url;
$this->products = $products;
}
* @return string
public function getTitle()
return $this->title;
* @return int
public function getId()
return $this->id;
public function getUrl()
return $this->url;
* @return Product[]
public function getProducts()
return $this->products;