Result.php 378 Bytes
Newer Older
1
2
<?php

3
namespace App\Models;
4
5
6
7

class Result
{
	
8
	function __construct ( $titel, $link, $anzeigeLink , $descr, $gefVon )
9
	{
10
		$this->titel = strip_tags(trim($titel));
11
12
		$this->link = trim($link);
		$this->anzeigeLink = trim($anzeigeLink);
13
14
		$this->descr = strip_tags(trim($descr));
		$this->descr = preg_replace("/\n+/si", " ", $this->descr);
15
		$this->gefVon = trim($gefVon);
16
17
	}
}