Skip to content

Commit a01b3ee

Browse files
authored
Merge pull request #70 from glensc/finals
Make all classes final
2 parents 294e54d + 1c4b7ee commit a01b3ee

13 files changed

Lines changed: 21 additions & 12 deletions

src/Profiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Xhgui\Profiler\Profilers\ProfilerInterface;
77
use Xhgui\Profiler\Saver\SaverInterface;
88

9-
class Profiler
9+
final class Profiler
1010
{
1111
const SAVER_UPLOAD = 'upload';
1212
const SAVER_FILE = 'file';

src/ProfilerFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Xhgui\Profiler\Exception\ProfilerException;
66
use Xhgui\Profiler\Profilers\ProfilerInterface;
77

8+
/**
9+
* @internal
10+
*/
811
final class ProfilerFactory
912
{
1013
/**

src/Profilers/Tideways.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @see https://github.com/tideways/php-profiler-extension
1111
*/
12-
class Tideways extends AbstractProfiler
12+
final class Tideways extends AbstractProfiler
1313
{
1414
const EXTENSION_NAME = 'tideways';
1515

src/Profilers/TidewaysXHProf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @see https://github.com/tideways/php-profiler-extension
1111
*/
12-
class TidewaysXHProf extends AbstractProfiler
12+
final class TidewaysXHProf extends AbstractProfiler
1313
{
1414
const EXTENSION_NAME = 'tideways_xhprof';
1515

src/Profilers/UProfiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Xhgui\Profiler\ProfilingFlags;
66

7-
class UProfiler extends AbstractProfiler
7+
final class UProfiler extends AbstractProfiler
88
{
99
const EXTENSION_NAME = 'uprofiler';
1010

src/Profilers/XHProf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Xhgui\Profiler\ProfilingFlags;
66

7-
class XHProf extends AbstractProfiler
7+
final class XHProf extends AbstractProfiler
88
{
99
const EXTENSION_NAME = 'xhprof';
1010

src/ProfilingData.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace Xhgui\Profiler;
44

5-
class ProfilingData
5+
/**
6+
* @internal
7+
*/
8+
final class ProfilingData
69
{
710
/** @var array */
811
private $excludeEnv;

src/Saver/FileSaver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Xhgui\Profiler\Saver;
44

5-
class FileSaver implements SaverInterface
5+
final class FileSaver implements SaverInterface
66
{
77
/** @var string */
88
private $file;

src/Saver/MongoSaver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @property Xhgui_Saver_Mongo $saver
99
*/
10-
class MongoSaver extends AbstractSaver
10+
final class MongoSaver extends AbstractSaver
1111
{
1212
public function isSupported()
1313
{

src/Saver/PdoSaver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @property Xhgui_Saver_Pdo $saver
99
*/
10-
class PdoSaver extends AbstractSaver
10+
final class PdoSaver extends AbstractSaver
1111
{
1212
public function isSupported()
1313
{

0 commit comments

Comments
 (0)