src/Api/Api.php
public function setManipulators(array $manipulators)
    {
        foreach ($manipulators as $manipulator) {
            if (!($manipulator instanceof ManipulatorInterface)) {
                throw new InvalidArgumentException('Not a valid manipulator.');
            }
        }

        $this->manipulators = $manipulators;
    }
public function setManipulators(array $manipulators)
    {
        foreach ($manipulators as $manipulator) {
            if (!($manipulator instanceof ManipulatorInterface)) {
                throw new InvalidArgumentException('Not a valid manipulator.');
            }
        }

        $this->manipulators = $manipulators;
    }
public function setManipulators ( array $ manipulators ) { foreach ( $ manipulators as $ manipulator ) { if ( ! ( $ manipulator instanceof ManipulatorInterface ) ) { throw new InvalidArgumentException ( 'Not a valid manipulator.' ) ; } } $ this -> manipulators = $ manipulators ; }
Set the manipulators.
@param array $manipulators Collection of manipulators.
Set the manipulators .