Completed
Pull Request — master (#24)
by
unknown
02:18
created

IProfileStorage

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 1
cts 1
cp 1
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
setProfile() 0 1 ?
getProfile() 0 1 ?
persist() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\Application\Environment;
6
7 1
interface IProfileStorage
8
{
9
	/**
10
	 * @param \SixtyEightPublishers\Application\Environment\IProfile $profile
11
	 *
12
	 * @return mixed|void
13
	 */
14
	public function setProfile(IProfile $profile);
15
16
	/**
17
	 * @return \SixtyEightPublishers\Application\Environment\ActiveProfile
18
	 */
19
	public function getProfile() : ActiveProfile;
20
21
	/**
22
	 * Saves actual ActiveProfile's state
23
	 * @return mixed|void
24
	 */
25
	public function persist();
26
}
27