src/Storage.php
public function store($object)
    {
        if (!is_object($object)) {
            throw new InvalidArgumentException(1, 'object');
        }

        $objects = array();
        $id = $this->doStore($this->freezer->freeze($object, $objects));

        if ($id !== null) {
            $object->{$this->freezer->getIdProperty()} = $id;
        }

        return $object->{$this->freezer->getIdProperty()};
    }
public function store($object)
    {
        if (!is_object($object)) {
            throw new InvalidArgumentException(1, 'object');
        }

        $objects = array();
        $id = $this->doStore($this->freezer->freeze($object, $objects));

        if ($id !== null) {
            $object->{$this->freezer->getIdProperty()} = $id;
        }

        return $object->{$this->freezer->getIdProperty()};
    }
public function store ( $ object ) { if ( ! is_object ( $ object ) ) { throw new InvalidArgumentException ( 1 , 'object' ) ; } $ objects = array ( ) ; $ id = $ this -> doStore ( $ this -> freezer -> freeze ( $ object , $ objects ) ) ; if ( $ id !== null ) { $ object -> { $ this -> freezer -> getIdProperty ( ) } = $ id ; } return $ object -> { $ this -> freezer -> getIdProperty ( ) } ; }
Freezes an object and stores it in the object storage.

@param  object $object The object that is to be stored.
@return string
Freezes an object and stores it in the object storage .