opt
/
cpanel
/
ea-wappspector
/
vendor
/
knplabs
/
packagist-api
/
src
/
Packagist
/
Api
/
Result
➕ New
📤 Upload
✎ Editing:
AbstractResult.php
← Back
<?php namespace Packagist\Api\Result; use Doctrine\Common\Inflector\Inflector; use Doctrine\Inflector\InflectorFactory; abstract class AbstractResult { /** * @param array $data */ public function fromArray(array $data) { $inflector = \class_exists(InflectorFactory::class) ? InflectorFactory::create()->build() : null; foreach ($data as $key => $value) { $property = null === $inflector ? Inflector::camelize($key) : $inflector->camelize($key); $this->$property = $value; } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel