mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-18 13:10:08 -07:00
Fix coding style
This commit is contained in:
parent
f2f4e086e6
commit
3c7ec6eced
@ -3,61 +3,70 @@
|
|||||||
* Created by PhpStorm.
|
* Created by PhpStorm.
|
||||||
* User: hubnedav
|
* User: hubnedav
|
||||||
* Date: 11/18/16
|
* Date: 11/18/16
|
||||||
* Time: 1:45 AM
|
* Time: 1:45 AM.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace AppBundle\Client\Rebrickable\Entity;
|
namespace AppBundle\Client\Rebrickable\Entity;
|
||||||
|
|
||||||
|
|
||||||
class Color
|
class Color
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Internal Rebrickable color ID used
|
* Internal Rebrickable color ID used.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $rb_color_id;
|
protected $rb_color_id;
|
||||||
/**
|
/**
|
||||||
* Array of mapped LDraw colors
|
* Array of mapped LDraw colors.
|
||||||
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $ldraw_color_id;
|
protected $ldraw_color_id;
|
||||||
/**
|
/**
|
||||||
* Array of mapped BrickLink colors
|
* Array of mapped BrickLink colors.
|
||||||
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $bricklink_color_id;
|
protected $bricklink_color_id;
|
||||||
/**
|
/**
|
||||||
* Array of mapped BrickOwl colors
|
* Array of mapped BrickOwl colors.
|
||||||
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $brickowl_color_id;
|
protected $brickowl_color_id;
|
||||||
/**
|
/**
|
||||||
* Color name
|
* Color name.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $color_name;
|
protected $color_name;
|
||||||
/**
|
/**
|
||||||
* Number of parts the color appears in.
|
* Number of parts the color appears in.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $num_parts;
|
protected $num_parts;
|
||||||
/**
|
/**
|
||||||
* Number of sets the color appears in.
|
* Number of sets the color appears in.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $num_sets;
|
protected $num_sets;
|
||||||
/**
|
/**
|
||||||
* First year it was used.
|
* First year it was used.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $year1;
|
protected $year1;
|
||||||
/**
|
/**
|
||||||
* Last year it was used.
|
* Last year it was used.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $year2;
|
protected $year2;
|
||||||
/**
|
/**
|
||||||
* Hex codes for the RGB value of this color: RRGGBB
|
* Hex codes for the RGB value of this color: RRGGBB.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $rgb;
|
protected $rgb;
|
||||||
@ -228,6 +237,4 @@ class Color
|
|||||||
{
|
{
|
||||||
$this->rgb = $rgb;
|
$this->rgb = $rgb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -47,6 +47,11 @@ class Part
|
|||||||
*/
|
*/
|
||||||
private $category;
|
private $category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Part category/type id matching getPartTypes method values.
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
private $typeId;
|
private $typeId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,6 +61,11 @@ class Part
|
|||||||
*/
|
*/
|
||||||
private $colors;
|
private $colors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Part color id matching getColors method values.
|
||||||
|
*
|
||||||
|
* @var
|
||||||
|
*/
|
||||||
private $colorId;
|
private $colorId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,7 +87,6 @@ class Part
|
|||||||
*/
|
*/
|
||||||
private $part_img_url;
|
private $part_img_url;
|
||||||
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ class Rebrickable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get associative array of colors used by all parts where key == rb_color_id
|
* Get associative array of colors used by all parts where key == rb_color_id.
|
||||||
*
|
*
|
||||||
* @return Color[]|null
|
* @return Color[]|null
|
||||||
*/
|
*/
|
||||||
@ -147,7 +147,7 @@ class Rebrickable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get associative array of themes used by all parts where key == part_type_id
|
* Get associative array of themes used by all parts where key == part_type_id.
|
||||||
*
|
*
|
||||||
* @return string[]
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user