<?php

namespace Oro\Bundle\EmailBundle\Event;

use Symfony\Component\EventDispatcher\Event;
use Oro\Bundle\EmailBundle\Entity\Email;

class EmailBodyAdded extends Event
{
    const NAME = 'oro_email.email_attachment_manager.email_body_added';

    /** @var Email */
    protected $email;

    /**
     * @param Email $email
     */
    public function __construct($email)
    {
        $this->email = $email;
    }

    /**
     * @return Email
     */
    public function getEmail()
    {
        return $this->email;
    }

}

<?php

namespace Oro\Bundle\EmailBundle\Event;

use Symfony\Component\EventDispatcher\Event;
use Oro\Bundle\EmailBundle\Entity\Email;

class EmailBodyAdded extends Event
{
    const NAME = 'oro_email.email_attachment_manager.email_body_added';

    /** @var Email */
    protected $email;

    /**
     * @param Email $email
     */
    public function __construct($email)
    {
        $this->email = $email;
    }

    /**
     * @return Email
     */
    public function getEmail()
    {
        return $this->email;
    }
}

Add attachments to emails - fix code standards
CRM-2268: Add attachments to emails
- fix code standards
