RenameAttribute.php
| 647 B | Satir:
0
| php
Geri
<?php declare (strict_types=1); namespace Rector\Renaming\ValueObject; /** * @api */ final class RenameAttribute { /** * @readonly * @var string */ private $oldAttribute; /** * @readonly * @var string */ private $newAttribute; public function __construct(string $oldAttribute, string $newAttribute) { $this->oldAttribute = $oldAttribute; $this->newAttribute = $newAttribute; } public function getOldAttribute() : string { return $this->oldAttribute; } public function getNewAttribute() : string { return $this->newAttribute; } }
Kaydet
Ctrl+S ile kaydet