Skip to content

Commit c775e52

Browse files
committed
Improved doc in object type class
1 parent d4ef81d commit c775e52

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

examples/objects.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
$reflected = new ReflectionClass('\Ladybug\Dumper');
2626

2727
$ladybug = new \Ladybug\Dumper();
28-
28+
$ladybug->setTheme('modern');
2929
echo $ladybug->dump($dom, $reflected, $date);

src/Ladybug/Type/ObjectType.php

+25-2
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,40 @@ class ObjectType extends AbstractType
2424

2525
const CLASSINFO_BUILTIN = 'built-in';
2626

27+
/** @var string $className Name of the class */
2728
protected $className = null;
29+
30+
/** @var array $classConstants Class constants */
2831
protected $classConstants = array();
29-
protected $objectProperties = array();
32+
33+
/** @var array $classStaticProperties Class static properties */
3034
protected $classStaticProperties = array();
35+
36+
/** @var array $classMethods Class methods */
3137
protected $classMethods = array();
32-
protected $objectCustomData = null;
38+
39+
/** @var null|string $classFile Class filename */
3340
protected $classFile = null;
41+
42+
/** @var array $classInterfaces Class interfaces */
3443
protected $classInterfaces = array();
44+
45+
/** @var null|string $classNamespace Class namespace */
3546
protected $classNamespace = null;
47+
48+
/** @var null|string $classParent Class parent */
3649
protected $classParent = null;
50+
51+
/** @var array $classTraits Class traits */
3752
protected $classTraits = array();
53+
54+
/** @var array $objectProperties Object properties */
55+
protected $objectProperties = array();
56+
57+
/** @var null $objectCustomData Object custom data */
58+
protected $objectCustomData = null;
59+
60+
3861
protected $toString = null;
3962

4063
/** @var boolean $abstract */

src/Ladybug/Type/ResourceType.php

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ protected function loadData($var)
132132

133133
}
134134

135+
/**
136+
*
137+
* @return mixed
138+
*/
135139
public function getResourceId()
136140
{
137141
return $this->resourceId;

0 commit comments

Comments
 (0)