Test Failed
Push — master ( 135f34...8b25c6 )
by Chris
33:49
created

defineSelectionValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Leonidas\Library\Admin\Field\Selection;
4
5
use WebTheory\Saveyour\Contracts\Field\Selection\SelectionProviderInterface;
6
use WP_Post;
7
8
abstract class AbstractPostSelectionProvider implements SelectionProviderInterface
9
{
10
    /**
11
     * @param WP_Post $post
12
     */
13
    public function defineSelectionValue($post): string
14
    {
15
        return (string) $post->ID;
16
    }
17
}
18