Skip to content

Commit

Permalink
Rename MagicActiveRecord to MagicalActiveRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 24, 2024
1 parent 118bd0f commit c3d0cd5
Show file tree
Hide file tree
Showing 32 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion src/MagicActiveRecord.php → src/MagicalActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @see BaseActiveRecord for more information.
*/
class MagicActiveRecord extends BaseActiveRecord implements
class MagicalActiveRecord extends BaseActiveRecord implements
ArrayableInterface,
ArrayAccess,
IteratorAggregate,
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Alpha.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* @property int $id
* @property string $string_identifier
*/
final class Alpha extends MagicActiveRecord
final class Alpha extends MagicalActiveRecord
{
public const TABLE_NAME = 'alpha';

Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Animal.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;
use Yiisoft\ActiveRecord\ActiveRecordInterface;
use Yiisoft\Db\Connection\ConnectionInterface;

Expand All @@ -14,7 +14,7 @@
* @property int $id
* @property string $type
*/
class Animal extends MagicActiveRecord
class Animal extends MagicalActiveRecord
{
private string $does;

Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/ArrayAndJsonTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

final class ArrayAndJsonTypes extends MagicActiveRecord
final class ArrayAndJsonTypes extends MagicalActiveRecord
{
}
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Beta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* @property int $id
* @property string $alpha_string_identifier
* @property Alpha $alpha
*/
final class Beta extends MagicActiveRecord
final class Beta extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/BitValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* {@see https://github.com/yiisoft/yii2/issues/9006}
*
* @property int $id
* @property int $val
*/
final class BitValues extends MagicActiveRecord
final class BitValues extends MagicalActiveRecord
{
}
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/BoolAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

final class BoolAR extends MagicActiveRecord
final class BoolAR extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Category.
*
* @property int $id
* @property string $name
*/
final class Category extends MagicActiveRecord
final class Category extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Customer.
Expand All @@ -16,7 +16,7 @@
* @property string $address
* @property int $status
*/
class Customer extends MagicActiveRecord
class Customer extends MagicalActiveRecord
{
public const STATUS_ACTIVE = 1;
public const STATUS_INACTIVE = 2;
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/CustomerClosureField.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class CustomerClosureField.
Expand All @@ -15,7 +15,7 @@
* @property string $address
* @property int $status
*/
final class CustomerClosureField extends MagicActiveRecord
final class CustomerClosureField extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/CustomerForArrayable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class CustomerClosureField.
Expand All @@ -15,7 +15,7 @@
* @property string $address
* @property int $status
*/
class CustomerForArrayable extends MagicActiveRecord
class CustomerForArrayable extends MagicalActiveRecord
{
public array $items = [];

Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/CustomerWithAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Customer.
Expand All @@ -17,7 +17,7 @@
*
* @method CustomerQuery findBySql($sql, $params = []) static
*/
final class CustomerWithAlias extends MagicActiveRecord
final class CustomerWithAlias extends MagicalActiveRecord
{
public const STATUS_ACTIVE = 1;
public const STATUS_INACTIVE = 2;
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/CustomerWithConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;
use Yiisoft\Aliases\Aliases;
use Yiisoft\Db\Connection\ConnectionInterface;

Expand All @@ -19,7 +19,7 @@
* @property int $status
* @property ProfileWithConstructor $profile
*/
final class CustomerWithConstructor extends MagicActiveRecord
final class CustomerWithConstructor extends MagicalActiveRecord
{
public function __construct(ConnectionInterface $db, private Aliases $aliases)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/CustomerWithProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Customer with defined properties.
*/
class CustomerWithProperties extends MagicActiveRecord
class CustomerWithProperties extends MagicalActiveRecord
{
protected int $id;
protected string $email;
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/DefaultPk.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

final class DefaultPk extends MagicActiveRecord
final class DefaultPk extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Department.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Department
Expand All @@ -14,7 +14,7 @@
* @property string $title
* @property Employee[] $employees
*/
final class Department extends MagicActiveRecord
final class Department extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* @property int $id
Expand All @@ -13,7 +13,7 @@
* @property int $version
* @property array $properties
*/
final class Document extends MagicActiveRecord
final class Document extends MagicalActiveRecord
{
public function optimisticLock(): ?string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Dossier.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Dossier
Expand All @@ -16,7 +16,7 @@
* @property string $summary
* @property Employee $employee
*/
final class Dossier extends MagicActiveRecord
final class Dossier extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Employee
Expand All @@ -18,7 +18,7 @@
* @property Department $department
* @property Dossier $dossier
*/
final class Employee extends MagicActiveRecord
final class Employee extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Item.
Expand All @@ -14,7 +14,7 @@
* @property string $name
* @property int $category_id
*/
final class Item extends MagicActiveRecord
final class Item extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/NoExist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

final class NoExist extends MagicActiveRecord
final class NoExist extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/NullValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class NullValues.
Expand All @@ -15,7 +15,7 @@
* @property int $var3
* @property string $stringcol
*/
final class NullValues extends MagicActiveRecord
final class NullValues extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class Order.
Expand All @@ -15,7 +15,7 @@
* @property int $created_at
* @property string $total
*/
class Order extends MagicActiveRecord
class Order extends MagicalActiveRecord
{
public const TABLE_NAME = 'order';

Expand Down
4 changes: 2 additions & 2 deletions tests/Stubs/MagicActiveRecord/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord;

use Yiisoft\ActiveRecord\ActiveQuery;
use Yiisoft\ActiveRecord\MagicActiveRecord;
use Yiisoft\ActiveRecord\MagicalActiveRecord;

/**
* Class OrderItem.
Expand All @@ -15,7 +15,7 @@
* @property int $quantity
* @property string $subtotal
*/
final class OrderItem extends MagicActiveRecord
final class OrderItem extends MagicalActiveRecord
{
public function getTableName(): string
{
Expand Down
Loading

0 comments on commit c3d0cd5

Please sign in to comment.