Decoded Output
Download<?php
namespace erp\modules\GeoAddress\models; use erp\modules\GeoAddress\interfaces\ZipCodeInterface; use yii\db\ActiveQuery; use yii\db\ActiveRecord; use yii\db\IntegrityException; class ZipCode extends ActiveRecord implements ZipCodeInterface { public static function tableName() { return '{{%zip_code}}'; } public function rules() { return [ [['code', 'area'], 'required'], [['area'], 'string'], [['code'], 'string', 'max' => 50], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'code' => 'Code', 'area' => 'Area', ]; } public static function find() { return parent::find()->select(['id', 'code', 'ST_asText(area) area']); } public function remove() { $isSuccess = $this->delete(); return $isSuccess; } public function changeArea($newArea) { $this->setAttribute('area', $newArea); $this->save(); return $this; } public function getId() { return $this->getAttribute('id'); } public function getCode() { return $this->getAttribute('code'); } public function getArea() { return $this->getAttribute('area'); } } ?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 6109f3936fc62b05 |
|---|---|
| Eval Count | 0 |
| Decode Time | 96 ms |
Original Code
<?php
namespace erp\modules\GeoAddress\models; use erp\modules\GeoAddress\interfaces\ZipCodeInterface; use yii\db\ActiveQuery; use yii\db\ActiveRecord; use yii\db\IntegrityException; class ZipCode extends ActiveRecord implements ZipCodeInterface { public static function tableName() { return '{{%zip_code}}'; } public function rules() { return [ [['code', 'area'], 'required'], [['area'], 'string'], [['code'], 'string', 'max' => 50], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'code' => 'Code', 'area' => 'Area', ]; } public static function find() { return parent::find()->select(['id', 'code', 'ST_asText(area) area']); } public function remove() { $isSuccess = $this->delete(); return $isSuccess; } public function changeArea($newArea) { $this->setAttribute('area', $newArea); $this->save(); return $this; } public function getId() { return $this->getAttribute('id'); } public function getCode() { return $this->getAttribute('code'); } public function getArea() { return $this->getAttribute('area'); } }