| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
namespace Imagify\Dependencies\League\Container\Inflector; |
| 4 |
|
| 5 |
interface InflectorInterface |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get the type. |
| 9 |
* |
| 10 |
* @return string |
| 11 |
*/ |
| 12 |
public function getType() : string; |
| 13 |
|
| 14 |
/** |
| 15 |
* Defines a method to be invoked on the subject object. |
| 16 |
* |
| 17 |
* @param string $name |
| 18 |
* @param array $args |
| 19 |
* |
| 20 |
* @return self |
| 21 |
*/ |
| 22 |
public function invokeMethod(string $name, array $args) : InflectorInterface; |
| 23 |
|
| 24 |
/** |
| 25 |
* Defines multiple methods to be invoked on the subject object. |
| 26 |
* |
| 27 |
* @param array $methods |
| 28 |
* |
| 29 |
* @return self |
| 30 |
*/ |
| 31 |
public function invokeMethods(array $methods) : InflectorInterface; |
| 32 |
|
| 33 |
/** |
| 34 |
* Defines a property to be set on the subject object. |
| 35 |
* |
| 36 |
* @param string $property |
| 37 |
* @param mixed $value |
| 38 |
* |
| 39 |
* @return self |
| 40 |
*/ |
| 41 |
public function setProperty(string $property, $value) : InflectorInterface; |
| 42 |
|
| 43 |
/** |
| 44 |
* Defines multiple properties to be set on the subject object. |
| 45 |
* |
| 46 |
* @param array $properties |
| 47 |
* |
| 48 |
* @return self |
| 49 |
*/ |
| 50 |
public function setProperties(array $properties) : InflectorInterface; |
| 51 |
|
| 52 |
/** |
| 53 |
* Apply inflections to an object. |
| 54 |
* |
| 55 |
* @param object $object |
| 56 |
* |
| 57 |
* @return void |
| 58 |
*/ |
| 59 |
public function inflect($object); |
| 60 |
} |
| 61 |
|