Re-add syntax highlighting to daily emails and

...ATDC lessons
This commit is contained in:
Oliver Davies 2024-02-18 01:35:59 +00:00
parent 0d9bb37503
commit 5fbf48d9ac
48 changed files with 186 additions and 165 deletions

View file

@ -10,7 +10,7 @@ tags:
Continuing with yesterday's data transfer object (DTO) example, something that can be done since PHP 8.1 is to make properties read-only:
```php
```language-php
class AccountDetails {
public function __construct(
@ -25,7 +25,7 @@ This means the public properties can be read and used without the need for gette
Without `readonly`, a DTO can be created and the property values can be changed:
```php
```language-php
$accountDetails = new AccountDetails('12345678', '00-00-00');
$accountDetails->accountNumber = 'banana';
```