# Serializable Closure

A class that enables serialization of closure.

```
use Acfatah\SerializableClosure\SerializableClosure;

$serializable = new Acfatah\SerializableClosure\SerializableClosure(
    function () {
        // this closure does something...
    }
);

```

Or,

```
$serialized = Acfatah\SerializableClosure\SerializableClosure::serialize(
    function () {
        // this closure does something...
    }
);

```

# Serializable Closure

[![Build Status](https://travis-ci.org/acfatah/serializable-closure.svg?branch=master)](https://travis-ci.org/acfatah/serializable-closure)

A class that enables serialization of closure.

```
use Acfatah\SerializableClosure\SerializableClosure;

$serializable = new Acfatah\SerializableClosure\SerializableClosure(
    function () {
        // this closure does something...
    }
);

```

Or,

```
$serialized = Acfatah\SerializableClosure\SerializableClosure::serialize(
    function () {
        // this closure does something...
    }
);

```

Add travis ci build badge
Add travis ci build badge
