I want to know the meaning of colon after method name i.e.
public function getTitle():Data {
interface Data {
public function details(string $name);
}
class Company {
private $title;
public function getTitle():Data {
return $this->title;
}
public function setTitle(Data $title)
{
$this->title=$title
}
}
.....
.....