<slide>
<title>Typed Properties</title>

<example result="0">
&lt;?php
class 🥃whisky
{
    public    string     $name;
    private   int        $age;
    public    Distillery $distillery;
    private   ?Bottler   $bottler;
}

$whisky = new 🥃whisky;
$whisky->distillery = "Lagavullin";
?>
</example>
<break/>

<div effect="fade-in">
<blurb class="error">
TypeError: Typed property 🥃whisky::$distillery must be an instance of Distillery, string used
</blurb>

<break lines="2"/>
<blurb class="centre">Type validation is checked when writing</blurb>
</div>
</slide>
