Skip to content

Commit b42538d

Browse files
committed
chore: update phpdocs
1 parent a5a37fe commit b42538d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ActiveRecord.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ abstract class ActiveRecord
2222
* It is preferable to use this method instead of the constructor because
2323
* it uses ORM services to create the entity.
2424
*
25-
* Equals to calling {@see ORMInterface::make()}.
26-
*
27-
* @param array<non-empty-string, mixed> $data An associative array where keys are property names
28-
* and values are property values.
25+
* @note Equals to calling {@see ORMInterface::make()}.
2926
*
3027
* Example:
3128
*
@@ -35,6 +32,9 @@ abstract class ActiveRecord
3532
* 'email' => '[email protected]',
3633
* ]);
3734
* ```
35+
*
36+
* @param array<non-empty-string, mixed> $data An associative array where keys are property names
37+
* and values are property values.
3838
*/
3939
public static function make(array $data): static
4040
{
@@ -51,6 +51,8 @@ final public static function findByPK(mixed $primaryKey): ?static
5151

5252
/**
5353
* Finds the first single record based on the given scope.
54+
*
55+
* @note Limit of 1 will be added to the query.
5456
*/
5557
final public static function findOne(array $scope = []): ?static
5658
{

0 commit comments

Comments
 (0)