comsave/salesforce-mapper-bundle

View on GitHub
src/LogicItLab/Salesforce/MapperBundle/Event/BeforeSaveEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace LogicItLab\Salesforce\MapperBundle\Event;

use Symfony\Component\EventDispatcher\Event;

class BeforeSaveEvent extends Event
{
    private $objects = array();

    /**
     * Construt event
     *
     * @param array $objects Array of Salesforce objects that will be
     *                          saved to Salesforce
     */
    public function __construct(array $objects)
    {
        $this->objects = $objects;
    }

    /**
     * Get objects that will be saved to Salesforce
     *
     * @return type
     */
    public function getObjects()
    {
        return $this->objects;
    }
}