forked from beberlei/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor beberlei#33 Deprecated Collector\Null, replaced by Collector\Nu…
…llCollector fix beberlei#32 (nicolas-grekas) This PR was merged into the 2.x-dev branch. Discussion ---------- Deprecated Collector\Null, replaced by Collector\NullCollector fix beberlei#32 Fixes beberlei#32: Deprecated: Beberlei\Metrics\Collector\Null uses a reserved class name (Null) that will break on PHP 7 and higher Commits ------- 5579315 Deprecated Collector\Null, replaced by Collector\NullCollector
- Loading branch information
Showing
6 changed files
with
45 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* Beberlei Metrics | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so I can send you a copy immediately. | ||
*/ | ||
|
||
namespace Beberlei\Metrics\Collector; | ||
|
||
class NullCollector implements Collector | ||
{ | ||
public function increment($variable) | ||
{ | ||
} | ||
public function decrement($variable) | ||
{ | ||
} | ||
public function timing($variable, $time) | ||
{ | ||
} | ||
public function measure($variable, $value) | ||
{ | ||
} | ||
public function gauge($variable, $value) | ||
{ | ||
} | ||
public function flush() | ||
{ | ||
} | ||
} |
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
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