src/Formatters/Formatter.php
protected function formatAble(&$object)
    {
        if (!is_object($object) || is_array($object)) {
            throw new InvalidArgumentException('The given argument is not an object/array.');
        }

        if (!is_object($object) && $object instanceof FormatAble) {
            return;
        }

        $object = new FormatAbleObject(clone($object));
    }
protected function formatAble(&$object)
    {
        if (!is_object($object) || is_array($object)) {
            throw new InvalidArgumentException('The given argument is not an object/array.');
        }

        if (!is_object($object) && $object instanceof FormatAble) {
            return;
        }

        $object = new FormatAbleObject(clone($object));
    }
protected function formatAble ( & $ object ) { if ( ! is_object ( $ object ) || is_array ( $ object ) ) { throw new InvalidArgumentException ( 'The given argument is not an object/array.' ) ; } if ( ! is_object ( $ object ) && $ object instanceof FormatAble ) { return ; } $ object = new FormatAbleObject ( clone ( $ object ) ) ; }
Make an object formatAble.

@param object|array $object

@return object
Make an object formatAble .