Last active
April 4, 2018 06:46
-
-
Save ahmed-abid/56bb429101c2a4908e0d23dcf70b439f to your computer and use it in GitHub Desktop.
aspect mock article
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 | |
namespace App\Core\Test; | |
/** | |
* User Model : example to show the use of static methos | |
* | |
* Class UserModel | |
* | |
* @package App\Core\Test | |
* | |
*/ | |
class UserModel | |
{ | |
/** | |
* table Name | |
* | |
* @return string | |
* | |
*/ | |
public static function tableName() : string | |
{ | |
return 'users'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment