diff --git a/include/wb/StatementLocalMedia.php b/include/wb/StatementLocalMedia.php new file mode 100644 --- /dev/null +++ b/include/wb/StatementLocalMedia.php @@ -0,0 +1,42 @@ +. + +# Wikibase +namespace wb; + +/** + * A StatementString is a Statement that contains a SnakString. + */ +class StatementLocalMedia extends Statement { + + /** + * @param $property string Property as 'P123' + * @param $filename string File name as 'File:Example.png' + */ + public function __construct( $property, $filename ) { + parent::__construct( new SnakLocalMedia( $property, $filename ) ); + } + + /** + * @param $property string Property as 'P123' + * @param $filename string File name as 'File:Example.png' + */ + public static function factory( $property, $filename ) { + return new self( $property, $filename ); + } +}