24 * Set the containing map
25 * @param MapInterface $container
28 function setContainer(MapInterface
$container) {
29 $this->container
= $container;
34 * Get the containing map
35 * @return MapInterface
37 function getContainer() {
38 return $this->container
;
42 * Get the property name
45 function getProperty() {
46 return $this->property
;
50 * Check whether this Property defines $property
51 * @param string $property
54 function defines($property) {
55 return $this->property
=== $property;
59 * Check whether this property exposes $field
60 * @param string $field
63 function exposes($field) {
64 return $this->field
=== $field;
68 * Set the value of the mapped property
69 * @param object $object
72 function assign($object, $value) {
74 ->getReflector($object, $this->property
)
75 ->setValue($object, $value);
79 * Get the value of the mapped property
80 * @param object $object
83 function extract($object) {
85 ->getReflector($object, $this->property
)
92 function __toString() {
93 return sprintf("%s: %s(%s)", get_class($this), $this->property
, $this->field?
:"NULL");