Skip to content

Commit

Permalink
Rename BaseActiveRecord to AbstractActiveRecord (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored May 20, 2024
1 parent 0c89029 commit 537eca7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BaseActiveRecord.php → src/AbstractActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*
* See {@see ActiveRecord} for a concrete implementation.
*/
abstract class BaseActiveRecord implements ActiveRecordInterface
abstract class AbstractActiveRecord implements ActiveRecordInterface
{
private array|null $oldAttributes = null;
private array $related = [];
Expand Down
2 changes: 1 addition & 1 deletion src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
* @template-implements ArrayAccess<string, mixed>
* @template-implements IteratorAggregate<string, mixed>
*/
class ActiveRecord extends BaseActiveRecord implements ArrayableInterface, ArrayAccess, IteratorAggregate
class ActiveRecord extends AbstractActiveRecord implements ArrayableInterface, ArrayAccess, IteratorAggregate
{
use ArrayableTrait;
use ArrayAccessTrait;
Expand Down
7 changes: 4 additions & 3 deletions src/Trait/ArrayableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
namespace Yiisoft\ActiveRecord\Trait;

use Closure;
use Yiisoft\ActiveRecord\BaseActiveRecord;
use Yiisoft\ActiveRecord\AbstractActiveRecord;
use Yiisoft\ActiveRecord\ActiveRecordInterface;

use function array_combine;
use function array_keys;
Expand All @@ -14,10 +15,10 @@
* Trait to implement {@see \Yiisoft\Arrays\ArrayableTrait} interface for ActiveRecord.
*
* @method string[] attributes()
* @see BaseActiveRecord::attributes()
* @see ActiveRecordInterface::attributes()
*
* @method array getRelatedRecords()
* @see BaseActiveRecord::getRelatedRecords()
* @see AbstractActiveRecord::getRelatedRecords()
*/
trait ArrayableTrait
{
Expand Down

0 comments on commit 537eca7

Please sign in to comment.