i trie to figure out what the use of the "text" is before te propery/variable in the contructor. What is the use of "TableGatewayInterface" in the constructor in the example below?
use Laminas\Db\TableGateway\TableGatewayInterface;
private function __construct(TableGatewayInterface $tableGateway)
{
$this->tableGateway = $tableGateway;
}
TableGatewayInterfacemeans - it's a type-hint. It means the function can't be called with any other type of variable, or a TypeError will be raised.