Skip to content

Commit

Permalink
add unset object id func
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Jun 2, 2017
1 parent 1dae546 commit 636505a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ function set_object_id($object, ObjectID $id)
{
(function () use ($id) { $this->_id = $id; })->call($object);
}

/**
* @param object $object
*/
function unset_object_id($object)
{
(function () { unset($this->_id); })->call($object);
}

0 comments on commit 636505a

Please sign in to comment.