openstackid-resources/app/Events/PresentationMaterialDeleted...

76 lines
1.7 KiB
PHP

<?php namespace App\Events;
/**
* Copyright 2016 OpenStack Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
use Illuminate\Queue\SerializesModels;
use models\summit\Presentation;
/**
* Class PresentationMaterialDeleted
* @package App\Events
*/
class PresentationMaterialDeleted extends Event
{
use SerializesModels;
/**
* @var Presentation
*/
private $presentation;
/**
* @var int
*/
private $material_id;
/**
* @var string
*/
private $class_name;
/**
* PresentationMaterialDeleted constructor.
* @param Presentation $presentation
* @param int $material_id
* @param string $class_name
*/
public function __construct(Presentation $presentation, $material_id, $class_name)
{
$this->presentation = $presentation;
$this->material_id = $material_id;
$this->class_name = $class_name;
}
/**
* @return Presentation
*/
public function getPresentation(){
return $this->presentation;
}
/**
* @return int
*/
public function getMaterialId(){
return $this->material_id;
}
/**
* @return string
*/
public function getClassName(){
return $this->class_name;
}
}