Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 641 Bytes

design.md

File metadata and controls

29 lines (20 loc) · 641 Bytes

Design

This exercise should provide a boilerplate with already implemented functions that only need a type declaration. The functions should be simple so that the exercise can appear early in the concept tree. The instructions should clearly express that it is all about native PHP type declarations, not comments (PHPDoc or phpstan/psalm types).

Learning objectives

  • property types
  • method parameter types
  • method return types

Out of scope

  • type unions
  • phpstan/psalm types

Prerequisites

  • integers
  • floating-point-numbers
  • strings
  • booleans
  • arrays
  • class-basics

Concepts

  • type-declarations