Last active
July 3, 2020 06:53
-
-
Save samadfcibd/39f9ebba31643cfdc97c7a0647ef04d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class userInfo | |
{ | |
public function getUserName() | |
{ | |
return 'name'; | |
} | |
// Here SRP violates | |
public function sendMailToUser() | |
{ | |
return 'success'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment