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

Image_License_Factory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 5
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
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