src/AbstractCollectionPlus.php
public function map($func)
    {
        if (is_callable($func, false))
            return $this->initNew(array_map($func, $this->_storage));

        throw new \InvalidArgumentException(vsprintf(
            '%s::map - Un-callable "$func" value seen!',
            array(get_class($this)))
        );
    }
public function map($func)
    {
        if (is_callable($func, false))
            return $this->initNew(array_map($func, $this->_storage));

        throw new \InvalidArgumentException(vsprintf(
            '%s::map - Un-callable "$func" value seen!',
            array(get_class($this)))
        );
    }
public function map ( $ func ) { if ( is_callable ( $ func , false ) ) return $ this -> initNew ( array_map ( $ func , $ this -> _storage ) ) ; throw new \ InvalidArgumentException ( vsprintf ( '%s::map - Un-callable "$func" value seen!' , array ( get_class ( $ this ) ) ) ) ; }
Applies array_map to this collection, and returns a new object.

@link http://us1.php.net/array_map

The scope "static" is used so that an instance of the extended class is returned.

@param callable $func
@throws \InvalidArgumentException
@return \DCarbone\CollectionPlusInterface
Applies array_map to this collection and returns a new object .