declare namespace Jymfony.Contracts.PropertyAccess { export class PropertyAccessorInterface { /** * Returns a value at the end of a property path * * The method tries to find a getter method for each property in the path. * The getter must be camel-cased and should eventually start with `get`, * `is` or `has`. If no public getter is found, tries to access the property * directly. * * If a property in the path is not found, an exception is thrown. * * @throws {Jymfony.Contracts.PropertyAccess.Exception.AccessException} A property in the path is not found */ getValue(object: object | any[], path: string | PropertyPathInterface): any; /** * Sets a value at the end of a property path. * * The method tries to find a getter method for each property in the path and * a public setter for the last one. * Same rules of getValues applies for the getters, while setter should be * eventually prefixed by `set`. * * If a property in the path is not found, an exception is thrown. * * @param {Object} object * @param {string|Jymfony.Contracts.PropertyAccess.PropertyPathInterface} path * @param {*} value * * @throws {Jymfony.Contracts.PropertyAccess.Exception.AccessException} A property in the path is not found */ setValue(object: object | any[], path: string | PropertyPathInterface, value: any): void; } }