1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-13 18:24:44 +02:00

Continuing transition to hugo

This commit is contained in:
Andrew Davis
2019-07-13 08:48:55 -05:00
parent e09557cf2c
commit 2ae912aada
36 changed files with 224 additions and 401 deletions

View File

@@ -1,3 +1,11 @@
+++
title = "Interfaces"
description = "Writing code contracts"
tags = ["php", "interface"]
slug = "interfaces"
previous = "static.html"
next = "abstract.html"
+++
The word `interface` is a confusing term because it is used for so many different concepts.
Most often, we use it to describe the appearance of an app and how a user interacts with it.
However, in PHP, an interface is a special construct that acts as a contract for classes.