Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Backed

A backed structure has several meanings:

  • Backed enumeration: an enumeration that has an integer or string value
  • Backed property: a property with a hook, that actually stores the value in the property.
<?php

    enum Habitat : int {
        case Savanna = 1;
    }

    class Elephpant {
        private $trunkLength { get => $this->trunkLength;}
    }
    
?>

Documentation

See Also