Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
ba03b0b8
Commit
ba03b0b8
authored
10 years ago
by
Bernhard Posselt
Browse files
Options
Downloads
Patches
Plain Diff
add an interface for the timefactory class
fix indention
parent
a641bb75
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/appframework/utility/timefactory.php
+3
-1
3 additions, 1 deletion
lib/private/appframework/utility/timefactory.php
lib/public/appframework/utility/itimefactory.php
+38
-0
38 additions, 0 deletions
lib/public/appframework/utility/itimefactory.php
with
41 additions
and
1 deletion
lib/private/appframework/utility/timefactory.php
+
3
−
1
View file @
ba03b0b8
...
...
@@ -24,11 +24,13 @@
namespace
OC\AppFramework\Utility
;
use
OCP\AppFramework\Utility\ITimeFactory
;
/**
* Needed to mock calls to time()
*/
class
TimeFactory
{
class
TimeFactory
implements
ITimeFactory
{
/**
...
...
This diff is collapsed.
Click to expand it.
lib/public/appframework/utility/itimefactory.php
0 → 100644
+
38
−
0
View file @
ba03b0b8
<?php
/**
* ownCloud - App Framework
*
* @author Bernhard Posselt
* @copyright 2014 Bernhard Posselt <dev@bernhard-posselt.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace
OCP\AppFramework\Utility
;
/**
* Needed to mock calls to time()
*/
interface
ITimeFactory
{
/**
* @return int the result of a call to time()
*/
public
function
getTime
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment