Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
5 / 5
Slice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
5 / 5
 iterator
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 slice
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 editableSlice
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 arrayData
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 editableArrayData
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace PHPixie;
class Slice
{
    public function iterator($data)
    {
        return new Slice\Iterator($data);
    }
    
    public function slice($data, $path = null)
    {
        return new Slice\Type\Slice($this, $data, $path);
    }
    
    public function editableSlice($data, $path = null)
    {
        return new Slice\Type\Slice\Editable($this, $data, $path);
    }
    
    public function arrayData($data = null)
    {
        return new Slice\Type\ArrayData($this, $data);
    }
    
    public function editableArrayData($data = null)
    {
        return new Slice\Type\ArrayData\Editable($this, $data);
    }
}