From c85563b06140afa310a8208a5695f9ad2d3a312b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Apr 2013 11:13:05 +0200 Subject: [PATCH] fix data ref for php 5.5 (DateTimeInterface) --- PHP/CompatInfo/Reference/date.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/PHP/CompatInfo/Reference/date.php b/PHP/CompatInfo/Reference/date.php index 1e84586..f141613 100644 --- a/PHP/CompatInfo/Reference/date.php +++ b/PHP/CompatInfo/Reference/date.php @@ -87,6 +87,32 @@ public function getClasses($extension = null, $version = null, $condition = null } /** + * Gets informations about interfaces + * + * @param string $extension (optional) NULL for PHP version, + * TRUE if extension version + * @param string $version (optional) php or extension version + * @param string $condition (optional) particular relationship with $version + * Same operator values as used by version_compare + * + * @return array + */ + public function getInterfaces($extension = null, $version = null, $condition = null) + { + $this->setFilter(func_get_args()); + + $interfaces = array(); + + $release = '5.5.0'; // not yet + $items = array( + 'DateTimeInterface' => array('5.5.0-dev', ''), + ); + $this->applyFilter($release, $items, $interfaces); + + return $interfaces; + } + + /** * Gets informations about functions * * @param string $extension (optional) NULL for PHP version, -- 1.8.1.5