PortableInfobox/includes/services/Parser/Nodes/NodeImage.php

26 lines
324 B
PHP
Raw Normal View History

2018-08-12 10:00:05 +00:00
<?php
namespace PortableInfobox\Parser\Nodes;
class NodeImage extends NodeMedia {
2021-09-10 04:03:06 +00:00
/*
* @return string
*/
public function getType() {
return 'media';
}
2018-08-12 10:00:05 +00:00
/*
* @return bool
*/
protected function allowImage() {
return true;
}
/*
* @return bool
*/
protected function allowAudio() {
return false;
}
2018-08-16 09:25:53 +00:00
}