Skip to content

Instantly share code, notes, and snippets.

@BackEndTea
Created June 23, 2023 13:51
Show Gist options
  • Save BackEndTea/79c507f8275cefd0d978d7bd161484d7 to your computer and use it in GitHub Desktop.
Save BackEndTea/79c507f8275cefd0d978d7bd161484d7 to your computer and use it in GitHub Desktop.
<?php
class WebsiteContext{}
class WrongSendMail
{
public function __construct(private WebsiteContext $website) {}
public function send(int $emailId) {}
}
class CorrectSendMail
{
public function send(int $emailId, WebsiteContext $website) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment