AsgardCms/Media

View on GitHub
Events/FileWasLinked.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Media\Events;

use Modules\Media\Entities\File;

class FileWasLinked
{
    /**
     * @var File
     */
    public $file;
    /**
     * The entity that was linked to a file
     * @var object
     */
    public $entity;

    /**
     * @param File $file
     * @param object $entity
     */
    public function __construct(File $file, $entity)
    {
        $this->file = $file;
        $this->entity = $entity;
    }
}