damianopetrungaro/CachetSDK

View on GitHub
src/Incidents/IncidentFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * This file is part of the CachetSDK package.
 *
 * @author  Damiano Petrungaro  <damianopetrungaro@gmail.com>
 */

namespace Damianopetrungaro\CachetSDK\Incidents;

use Damianopetrungaro\CachetSDK\CachetClient;

/**
 * Class IncidentFactory.
 *
 * The IncidentFactory generate a singleton for interact with Incidents in cachet
 */
class IncidentFactory
{
    /**
     * Build an object.
     *
     * @param $client
     *
     * @return object IncidentActions
     */
    public static function build(CachetClient $client)
    {
        return new IncidentActions($client);
    }
}