Inheritance of Interfaces From Each Other in OOP in PHP

Interfaces, just like classes, can inherit from each other using the operator extends. Let's look at an example. Suppose we have such an interface from the previous lesson:

php<?php
  interface iRectangle
  {
    public function __construct($a, $b);
    public function getSquare();
    public function getPerimeter();
  }
?>

However, we already have an interface iFigure, which describes some of the methods of our interface:

iFigure.php<?php
  interface iFigure
  {
    public function getSquare();
    public function getPerimeter();
  }
?>

Let's make the interface iRectangle inherit the methods of the interface iFigure:

iRectangle.php<?php
  interface iRectangle extends iFigure
  {
    public function __construct($a, $b);
  }
?>
Задание 1

Make an interface iUser with methods getName, setName, getAge, setAge.

Задание 2

Make an interface iEmployee, inheriting from the interface iUser and adding methods getSalary and setSalary to it.

Задание 3

Make a class Employee, implementing the interface iEmployee.