Skip to content

Commit

Permalink
Merge branch 'feature/2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamshory committed Oct 19, 2024
2 parents e595e4a + 0d0be93 commit 851ce04
Show file tree
Hide file tree
Showing 128 changed files with 1,480 additions and 777 deletions.
7 changes: 7 additions & 0 deletions src/ComplexNumber/ComplexNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

namespace MagicObject\ComplexNumber;

/**
* ComplexNumber class
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class ComplexNumber {

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Constants/PicoHttpStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*
* This class defines constants for standard HTTP status codes.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoHttpStatus
Expand Down
2 changes: 2 additions & 0 deletions src/Constants/PicoMime.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
* This class contains constants representing various MIME types.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoMime
Expand Down
2 changes: 2 additions & 0 deletions src/Constants/PicoMimeMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* This class defines a mapping of file extensions to their corresponding MIME types.
* It can be used to determine the appropriate content type for files based on their extensions.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoMimeMap
Expand Down
2 changes: 2 additions & 0 deletions src/DataLabel/PicoDataLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*
* This class uses annotations to define properties and their metadata.
*
* @author Kamshory
* @package MagicObject\DataLabel
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDataLabel extends SetterGetter
Expand Down
2 changes: 2 additions & 0 deletions src/DataLabel/PicoDataLabels.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
* This class allows for the storage and management of multiple data labels.
*
* @author Kamshory
* @package MagicObject\DataLabel
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDataLabels
Expand Down
2 changes: 2 additions & 0 deletions src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* on the provided data, with support for property annotations to manage
* labels and attributes.
*
* @author Kamshory
* @package MagicObject
* @link https://github.com/Planetbiru/MagicObject
*/
class DataTable extends SetterGetter
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoDataComparation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
/**
* Class for handling data comparisons.
* Provides various comparison operations for use in database queries.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDataComparation
Expand Down
3 changes: 2 additions & 1 deletion src/Database/PicoDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
* $result = $db->fetch("SELECT * FROM users WHERE id = 1");
* ```
*
* Developer: Kamshory
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabase //NOSONAR
Expand Down
2 changes: 2 additions & 0 deletions src/Database/PicoDatabaseCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* The attributes are automatically encrypted when set, providing a secure way to handle sensitive
* information within your application.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabaseCredentials extends SecretObject
Expand Down
4 changes: 4 additions & 0 deletions src/Database/PicoDatabaseEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Class PicoDatabaseEntity
*
* Represents a database entity that manages multiple database connections.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabaseEntity
{
Expand Down
3 changes: 3 additions & 0 deletions src/Database/PicoDatabasePersistence.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

/**
* Database persistence
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabasePersistence // NOSONAR
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoDatabasePersistenceExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
* This class extends the functionality of the PicoDatabasePersistence
* by adding dynamic property setting through magic methods and enhanced
* record selection capabilities.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabasePersistenceExtended extends PicoDatabasePersistence
Expand Down
3 changes: 3 additions & 0 deletions src/Database/PicoDatabaseQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

/**
* Query builder
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabaseQueryBuilder // NOSONAR
Expand Down
2 changes: 2 additions & 0 deletions src/Database/PicoDatabaseStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/**
* Represents the structure of a database table.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabaseStructure
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoDatabaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* Class representing different database types.
*
* This class provides constants for various database types supported by the MagicObject framework.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoDatabaseType
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoEntityField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*
* This class encapsulates information about an entity field, including
* its associated entity, field name, and any parent field relationships.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoEntityField
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoEntityLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
* Class to manage entity labels and their annotations.
*
* Provides methods to retrieve and filter entity metadata, including labels, columns, and other attributes.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoEntityLabel
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoJoinMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* Class representing a join mapping in a database.
*
* Contains information about how an entity is joined with another table.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoJoinMap
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*
* This class provides functionality to manage pagination in database queries
* by setting limits and offsets.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoLimit
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*
* This class provides functionality to manage page numbers and sizes,
* and to calculate offsets for database queries.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoPage
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoPageControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
* page buttons, allowing users to navigate through pages seamlessly.
* The pagination links are generated based on the provided page data and
* can be customized with parameter names and paths.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoPageControl
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoPageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
* - Supports execution time tracking for performance monitoring.
* - Provides easy access to pagination controls and metadata.
* - Facilitates fetching and processing of data with subquery mapping.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoPageData //NOSONAR
Expand Down
3 changes: 3 additions & 0 deletions src/Database/PicoPageable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

/**
* Pageable
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoPageable
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoPredicate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
* This class allows you to define various query conditions
* (e.g., equality, inequality, inclusion, pattern matching, etc.)
* to be used when constructing database queries.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoPredicate //NOSONAR
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoSort.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
* A class for defining sorting criteria for database queries.
* This class allows you to specify the field to sort by and the
* direction of sorting (ascending or descending).
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoSort
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoSortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
*
* This class provides functionality to manage sorting criteria,
* allowing the specification of fields to sort by and their sort types.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoSortable
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoSpecification.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
*
* This class is responsible for building complex database query specifications,
* allowing for the combination of predicates using logical operators (AND, OR).
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoSpecification //NOSONAR
Expand Down
2 changes: 2 additions & 0 deletions src/Database/PicoSpecificationFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* This class defines filters for columns, specifying the data type
* and providing methods to convert values based on the defined type.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoSpecificationFilter
Expand Down
2 changes: 2 additions & 0 deletions src/Database/PicoTableInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* primary keys, and other related metadata necessary for managing
* database interactions.
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoTableInfo // NOSONAR
Expand Down
4 changes: 3 additions & 1 deletion src/Database/PicoTableInfoExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
* This class extends the functionality of PicoTableInfo by providing methods
* for managing unique columns, join columns, primary keys, auto-increment keys,
* default values, and not-null columns.
*
*
* @author Kamshory
* @package MagicObject\Database
* @link https://github.com/Planetbiru/MagicObject
*/
class PicoTableInfoExtended extends PicoTableInfo
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/EmptyResultException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* Custom exception class for handling scenarios where a result is expected
* but none is returned. This can be useful for database queries or API calls
* where a missing result should be treated as an exceptional case.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class EmptyResultException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/EntityException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* Custom exception class for handling errors related to entity operations.
* This can include issues such as validation failures, database errors, or
* other exceptions that occur during entity processing.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class EntityException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/FileNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* Custom exception class for handling file not found errors.
* This can be used in scenarios where a required file is missing,
* such as when attempting to read or access a file that does not exist.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class FileNotFoundException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/FindOptionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* of finding or retrieving options. This exception can be thrown when
* an expected option is not found, whether in configuration settings,
* database queries, or other operational contexts.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class FindOptionException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/InvalidAddressException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
* found to be improperly formatted. It can be used in scenarios such as
* address processing in applications that require user input for locations,
* shipping, or billing addresses.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class InvalidAddressException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/InvalidAnnotationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* This exception can be thrown when an annotation is improperly formatted,
* missing, or fails validation in contexts such as reflection, metadata
* processing, or any system relying on annotations for configuration.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class InvalidAnnotationException extends Exception
{
Expand Down
4 changes: 4 additions & 0 deletions src/Exceptions/InvalidClassExceptio.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* This exception can be thrown when a class cannot be instantiated or when
* a class is found to be improperly defined, potentially during reflection or
* dynamic class loading operations.
*
* @author Kamshory
* @package MagicObject\Exceptions
* @link https://github.com/Planetbiru/MagicObject
*/
class InvalidClassException extends Exception
{
Expand Down
Loading

0 comments on commit 851ce04

Please sign in to comment.