Completed
Push — develop ( 1d4633...83eb6a )
by David
02:35 queued 10s
created

Image_License_Factory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 14 1
1
<?php
2
3
namespace Wordlift\Images_Licenses;
4
5
/**
6
 * @package Wordlift\Images_Licenses
7
 */
8
class Image_License_Factory {
9
10
	public function create( $attachment_id, $data, $more_info_link, $posts_ids_as_featured_image = array(), $posts_ids_as_embed = array() ) {
11
12
		return array(
13
			'attachment_id'               => $attachment_id,
14
			'more_info_link'              => $more_info_link,
15
			'posts_ids_as_embed'          => $posts_ids_as_embed,
16
			'posts_ids_as_featured_image' => $posts_ids_as_featured_image,
17
			'filename'                    => $data['filename'],
18
			'author'                      => $data['author'],
19
			'license'                     => $data['license'],
20
			'license_family'              => $data['licenseFamily'],
21
			'url'                         => $data['url'],
22
		);
23
	}
24
25
}
26