Created
August 22, 2019 16:38
-
-
Save infinitypaul/6d27a977f17c381823263f642d8bab90 to your computer and use it in GitHub Desktop.
This file contains 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 User { | |
public function create(array $data){ | |
try { | |
//Save User To Database | |
} catch (Exception $exception){ | |
$this->logError($exception->getMessage()); | |
} | |
} | |
public function edit(){ | |
//Edit User Record | |
} | |
public function logError($message){ | |
// Write Error To File | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment