Skip to content

Commit

Permalink
chore: update phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jul 3, 2024
1 parent a5a37fe commit b42538d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ abstract class ActiveRecord
* It is preferable to use this method instead of the constructor because
* it uses ORM services to create the entity.
*
* Equals to calling {@see ORMInterface::make()}.
*
* @param array<non-empty-string, mixed> $data An associative array where keys are property names
* and values are property values.
* @note Equals to calling {@see ORMInterface::make()}.
*
* Example:
*
Expand All @@ -35,6 +32,9 @@ abstract class ActiveRecord
* 'email' => '[email protected]',
* ]);
* ```
*
* @param array<non-empty-string, mixed> $data An associative array where keys are property names
* and values are property values.
*/
public static function make(array $data): static
{
Expand All @@ -51,6 +51,8 @@ final public static function findByPK(mixed $primaryKey): ?static

/**
* Finds the first single record based on the given scope.
*
* @note Limit of 1 will be added to the query.
*/
final public static function findOne(array $scope = []): ?static
{
Expand Down

0 comments on commit b42538d

Please sign in to comment.