Created
September 1, 2014 13:44
-
-
Save stepanselyuk/fed9bb4e66d29f641482 to your computer and use it in GitHub Desktop.
AppThread Trait
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 | |
/** | |
* Created by PhpStorm. | |
* Author: Stepan Seliuk <[email protected]> | |
* Date: 01/06/14 | |
* Time: 15:46 | |
*/ | |
namespace app\components\traits; | |
/** | |
* Trait AppThreadTrait | |
* @package app\components\traits | |
*/ | |
trait AppThreadTrait | |
{ | |
protected static $_thread; | |
public function setThread() | |
{ | |
self::$_thread = microtime( true ) * 10000; | |
return $this; | |
} | |
public function getThread() | |
{ | |
return self::$_thread; | |
} | |
} |
Author
stepanselyuk
commented
Sep 1, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment