Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* * This file is part of the LidaaTwigBundle package. */ namespace Lidaa\TwigBu..

Decoded Output download

<?php

/*
 * This file is part of the LidaaTwigBundle package.
 */

namespace Lidaa\TwigBundle\Crumbs;

/**
 * Crumbs
 *
 * @author Lidaa <[email protected]>
 */
class Crumbs implements \ArrayAccess, \Countable, \Iterator
{

    private $items;
    private $separator;

    public function __construct()
    {
        $this->items = array();
        $this->separator = '&raquo;';
    }

    public function addItem($title, $routeName, $routeParameters = array())
    {
        $this->items[] = array($title, $routeName, $routeParameters);

        return $this;
    }

    public function removeItem($index)
    {
        unset($this->items[$index]);

        return $this;
    }

    public function setSeparator($separator)
    {
        $this->separator = $separator;
    }

    public function getSeparator()
    {
        return $this->separator;
    }

    public function offsetExists($index)
    {
        return isset($this->items[$index]);
    }

    public function offsetGet($index)
    {
        return $this->items[$index];
    }

    public function offsetSet($index, $value)
    {
        if (is_array($value))
            $this->items[$index] = $value;
    }

    public function offsetUnset($index)
    {
        $this->removeItem($index);
    }

    public function count()
    {
        return count($this->items);
    }

    public function current()
    {
        return current($this->items);
    }

    public function next()
    {
        return next($this->items);
    }

    public function key()
    {
        return key($this->items);
    }

    public function valid()
    {
        return key($this->items) !== null;
    }

    public function rewind()
    {
        return reset($this->items);
    }

    public function isLast()
    {
        if ($this->current() === $this->items[$this->count() - 1]) {
            return true;
        }
        
        return false;
    }

} ?>

Did this file decode correctly?

Original Code

<?php

/*
 * This file is part of the LidaaTwigBundle package.
 */

namespace Lidaa\TwigBundle\Crumbs;

/**
 * Crumbs
 *
 * @author Lidaa <[email protected]>
 */
class Crumbs implements \ArrayAccess, \Countable, \Iterator
{

    private $items;
    private $separator;

    public function __construct()
    {
        $this->items = array();
        $this->separator = '&raquo;';
    }

    public function addItem($title, $routeName, $routeParameters = array())
    {
        $this->items[] = array($title, $routeName, $routeParameters);

        return $this;
    }

    public function removeItem($index)
    {
        unset($this->items[$index]);

        return $this;
    }

    public function setSeparator($separator)
    {
        $this->separator = $separator;
    }

    public function getSeparator()
    {
        return $this->separator;
    }

    public function offsetExists($index)
    {
        return isset($this->items[$index]);
    }

    public function offsetGet($index)
    {
        return $this->items[$index];
    }

    public function offsetSet($index, $value)
    {
        if (is_array($value))
            $this->items[$index] = $value;
    }

    public function offsetUnset($index)
    {
        $this->removeItem($index);
    }

    public function count()
    {
        return count($this->items);
    }

    public function current()
    {
        return current($this->items);
    }

    public function next()
    {
        return next($this->items);
    }

    public function key()
    {
        return key($this->items);
    }

    public function valid()
    {
        return key($this->items) !== null;
    }

    public function rewind()
    {
        return reset($this->items);
    }

    public function isLast()
    {
        if ($this->current() === $this->items[$this->count() - 1]) {
            return true;
        }
        
        return false;
    }

}

Function Calls

None

Variables

None

Stats

MD5 08270567c630532a8b9d7c6d62395849
Eval Count 0
Decode Time 131 ms