Skip to content

Commit

Permalink
chore: update class comments for all file
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Feb 8, 2024
1 parent 34243f5 commit ebcac8b
Show file tree
Hide file tree
Showing 53 changed files with 6 additions and 90 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ composer.lock
*.log
*.pid
*.cache
.phpdoc/
phpdoc/
*.patch
.DS_Store
5 changes: 1 addition & 4 deletions src/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
use Toolkit\Stdlib\Arr\ArrayHelper;

/**
* Class Arr
* - alias of the ArrayHelper
*
* @package Toolkit\Stdlib
* Class Arr - alias of the ArrayHelper
*/
class Arr extends ArrayHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Arr/ArrBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

/**
* Class ArrBuffer
*
* @package Toolkit\Stdlib\Arr
*/
final class ArrBuffer
{
Expand Down
2 changes: 0 additions & 2 deletions src/Arr/ArrayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

/**
* Class ArrayHelper
*
* @package Toolkit\Stdlib\Arr
*/
class ArrayHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Arr/Traits/ArrayMergeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

/**
* Trait ArrayMergeTrait
*
* @package Toolkit\Stdlib\Arr\Traits
*/
trait ArrayMergeTrait
{
Expand Down
2 changes: 0 additions & 2 deletions src/Arr/Traits/ArrayValueGetSetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

/**
* Trait ArrayValueGetSetTrait
*
* @package Toolkit\Stdlib\Arr\Traits
*/
trait ArrayValueGetSetTrait
{
Expand Down
2 changes: 0 additions & 2 deletions src/Helper/DataHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

/**
* Class DataHelper
*
* @package Toolkit\Stdlib\Helper
*/
class DataHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Helper/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

/**
* Class Format
*
* @package Toolkit\Stdlib\Helper
*/
class Format
{
Expand Down
2 changes: 0 additions & 2 deletions src/Helper/JsonHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

/**
* Class JsonHelper
*
* @package Toolkit\Stdlib
*/
class JsonHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Helper/NetHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

/**
* Class NetHelper
*
* @package Toolkit\Stdlib\Helper
*/
class NetHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Helper/PhpHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@

/**
* Class PhpHelper
*
* @package Toolkit\PhpKit
*/
class PhpHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class Json
*
* @package Toolkit\Stdlib
*/
final class Json extends JsonHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Math.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class Math
*
* @package Toolkit\Stdlib
*/
class Math extends NumHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Num.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class Num
*
* @package Toolkit\Stdlib
*/
class Num extends NumHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/OS.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@

/**
* Class OsEnv
*
* @package Toolkit\PhpKit\OS
*/
class OS
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
/**
* Class Obj
* alias of the ObjectHelper
*
* @package Toolkit\Stdlib\Obj
*/
class Obj extends ObjectHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/AbstractMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/**
* Class AbstractMap
*
* @package Toolkit\Stdlib\Obj
*/
abstract class AbstractMap implements JsonSerializable
{
Expand Down
8 changes: 3 additions & 5 deletions src/Obj/BaseObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

/**
* Class AbstractObj
*
* @package Toolkit\Stdlib\Obj
*/
abstract class BaseObject implements JsonSerializable
{
Expand All @@ -40,13 +38,13 @@ public function __construct(array $data = [])
if ($data) {
$this->load($data);
}
$this->init();
$this->afterNew();
}

/**
* will call init() after constructor.
* will call it after constructor.
*/
protected function init(): void
protected function afterNew(): void
{
// do something...
}
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Configurable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class Configurable
*
* @package Toolkit\Stdlib\Obj
*/
abstract class Configurable
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

/**
* Class DataObject
*
* @package Toolkit\Stdlib\Obj
*/
class DataObject extends ArrayObject implements JsonSerializable
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Exception/ContainerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/**
* Class ContainerException
*
* @package Toolkit\Stdlib\Obj\Exception
*/
class ContainerException extends RuntimeException implements ContainerExceptionInterface
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Exception/GetPropertyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class GetPropertyException
*
* @package Toolkit\Stdlib\Obj\Exception
*/
class GetPropertyException extends RuntimeException
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/**
* Class NotFoundException
*
* @package Toolkit\Stdlib\Obj\Exception
*/
class NotFoundException extends RuntimeException implements NotFoundExceptionInterface
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Exception/PropertyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class PropertyException
*
* @package Toolkit\Stdlib\Obj\Exception
*/
class PropertyException extends RuntimeException
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/Exception/SetPropertyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class SetPropertyException
*
* @package Toolkit\Stdlib\Obj\Exception
*/
class SetPropertyException extends RuntimeException
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/ObjectBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
* An simple object containers implements
*
* NOTICE: require the `psr/container` package.
*
* @package Toolkit\Stdlib\Obj
*/
class ObjectBox implements ContainerInterface
{
Expand Down
2 changes: 0 additions & 2 deletions src/Obj/ObjectHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@

/**
* Class ObjectHelper
*
* @package Toolkit\Stdlib\Obj
*/
class ObjectHelper
{
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/ArrayAccessByGetterSetterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/**
* Class TraitArrayAccess
*
* @package Toolkit\Stdlib\Obj\Traits
* ```
* class A implements \ArrayAccess
* {
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/ArrayAccessByPropertyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
/**
* Class TraitArrayAccess
*
* @package Toolkit\Stdlib\Obj\Traits
* ```
* class A implements \ArrayAccess
* {
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/ObjectPoolTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* Class ObjectPoolTrait
*
* @package Toolkit\Stdlib\Obj\Traits
*/
trait ObjectPoolTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/QuickInitTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
/**
* Trait QuickInitTrait
*
* @package Toolkit\Stdlib\Obj\Traits
*/
trait QuickInitTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/SingletonPoolTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/**
* Trait SingletonPoolTrait
*
* @package Toolkit\Stdlib\Obj\Traits
*/
trait SingletonPoolTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/SingletonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
/**
* Trait SingletonTrait
*
* @package Toolkit\Stdlib\Obj\Traits
*/
trait SingletonTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Obj/Traits/StdObjectTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
/**
* Class StdObjectTrait
*
* @package Toolkit\Stdlib\Obj\Traits
*/
trait StdObjectTrait
{
Expand Down
2 changes: 0 additions & 2 deletions src/Php.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* Class PHP
*
* @package Toolkit\Stdlib
*/
class Php extends PhpHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Str/HtmlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

/**
* Class HtmlHelper
*
* @package Toolkit\Stdlib\Str
*/
class HtmlHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Str/StrBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

/**
* Class StrBuffer
*
* @package Toolkit\Stdlib\Str
*/
class StrBuffer implements Stringable
{
Expand Down
2 changes: 0 additions & 2 deletions src/Str/StrHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

/**
* Class StrHelper
*
* @package Toolkit\Stdlib\Str
*/
class StrHelper extends StringHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Str/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@

/**
* Class StringHelper
*
* @package Toolkit\Stdlib\Str
*/
abstract class StringHelper
{
Expand Down
2 changes: 0 additions & 2 deletions src/Str/Traits/StringCaseHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

/**
* Trait StringCaseHelperTrait
*
* @package Toolkit\Stdlib\Str\Traits
*/
trait StringCaseHelperTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Str/Traits/StringCheckHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
/**
* Trait StringCheckHelperTrait
*
* @package Toolkit\Stdlib\Str\Traits
*/
trait StringCheckHelperTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Str/Traits/StringConvertTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
/**
* Trait StringSplitHelperTrait
*
* @package Toolkit\Stdlib\Str\Traits
*/
trait StringConvertTrait
{
Expand Down
1 change: 0 additions & 1 deletion src/Str/Traits/StringLengthHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
/**
* Trait StringLengthHelperTrait
*
* @package Toolkit\Stdlib\Str\Traits
*/
trait StringLengthHelperTrait
{
Expand Down
Loading

0 comments on commit ebcac8b

Please sign in to comment.