miniflux-legacy/vendor/PicoFeed/Writer.php
2013-06-28 21:50:15 -04:00

21 lines
413 B
PHP

<?php
namespace PicoFeed;
abstract class Writer
{
public $items = array();
abstract public function execute($filename = '');
public function checkRequiredProperties()
{
foreach ($this->required_properties as $property) {
if (! isset($this->$property)) {
throw new \RuntimeException('Required property missing: '.$property);
}
}
}
}