HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/school/public_html/school/application/libraries/SEOstats/Helper/ArrayHandle.php
<?php
namespace SEOstats\Helper;

/**
 * Array - Handle
 *
 * @package    SEOstats
 * @author     Stephan Schmitz <eyecatchup@gmail.com>
 * @copyright  Copyright (c) 2010 - present Stephan Schmitz
 * @license    http://eyecatchup.mit-license.org/  MIT License
 * @updated    2013/02/03
 */

class ArrayHandle
{
    protected $array;

    public function push($element)
    {
        $this->array[] = $element;
    }

    public function setElement($key, $element)
    {
        $this->array[$key] = $element;
    }

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

    public function toArray()
    {
        return $this->array;
    }
}