phoenixrvd/oda

View on GitHub
src/Methods/Set.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PhoenixRVD\ODA\Methods;

use PhoenixRVD\ODA\Interfaces\OdaObject;

/**
 * Implementiert die Setter-Methoden.
 *
 * @example setMyValue('foo')
 */
class Set extends AbstractMethod
{
    public function execute(OdaObject $object, array $attributes = [])
    {
        return $object->setDataValue($this->propertyName, $attributes[0]);
    }
}