winter/modules/cms/classes/MediaLibraryItem.php
Arthur Kushman bbc33710c1 >= PHP7.0 refactoring (#3343)
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class, 
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00

20 lines
580 B
PHP

<?php namespace Cms\Classes;
use System\Classes\MediaLibraryItem as SystemMediaLibraryItem;
/**
* Represents a file or folder in the Media Library.
*
* @package october\cms
* @author Alexey Bobkov, Samuel Georges
* @deprecated Use System\Classes\MediaLibraryItem. Remove if year >= 2020.
*/
class MediaLibraryItem extends SystemMediaLibraryItem
{
public function __construct()
{
traceLog('Class Cms\Classes\MediaLibraryItem has been deprecated, use ' . SystemMediaLibraryItem::class . ' instead.');
parent::__construct(...func_get_args());
}
}