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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user