howardjones/network-weathermap

View on GitHub
lib/Weathermap/Plugins/Pre/Base.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Weathermap\Plugins\Pre;

use Weathermap\Core\Map;

/**
 * Base class for pre-processing plugins.
 */
class Base
{
    /** @var  Map */
    protected $owner;

    public function init(&$map)
    {
        $this->owner = $map;

        return true;
    }

    /**
     * The only API for a PreProcessor - do whatever it is that you are supposed to do.
     *
     * @param Map $map the WeatherMap main object
     * @return bool Success/Failure? Not currently interpreted.
     */
    public function run()
    {
        return false;
    }
}