Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename BaseActiveRecord to AbstractActiveRecord #319

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading