1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-10-24 19:36:04 +02:00

Chapter editing fixes

This commit is contained in:
Andrew Davis
2019-01-09 16:56:52 -06:00
parent 4666e39347
commit c57edbe796
9 changed files with 23 additions and 28 deletions

View File

@@ -3,7 +3,8 @@ In the previous examples, we always left the parentheses empty.
```php
<?php
class Hat {
class Hat
{
public $color;
public function setColor($color)
@@ -42,7 +43,7 @@ You can write:
$ballcap = new Ballcap('Blue');
```
Constructors do not return values because the return value is a always a new object.
Constructors do not return values because the return value is always a new object.
```php
class Tophat
{