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

@ -14,7 +14,7 @@ As long as a class implements an Interface, it can be decorated.
For example, if I have this PHP interface:
```php
```language-php
interface DoesSomething
{
public function doSomething(): void;
@ -23,7 +23,7 @@ interface DoesSomething
I could have this class that does something:
```php
```language-php
final class FirstClass implements DoesSomething
{
public function doSomething(): void
@ -37,7 +37,7 @@ If I need to do something else, like caching or logging the result, I can decora
To do this, I need another class that implements the same interface and inject the original version.
```php
```language-php
final class SecondClass implements DoesSomething
{
public function __constuct(