miniflux-legacy/vendor/PicoFeed/Writer.php

21 lines
413 B
PHP
Raw Normal View History

2013-06-29 03:50:15 +02:00
<?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);
}
}
}
}