public function get($entity)
    {
        $key = $this->mapping['fieldname'];
        $valueMethod = 'get' . ucfirst($key);
        $value = $entity->$valueMethod();

        return $value;
    }
public function get($entity)
    {
        $key = $this->mapping['fieldname'];
        $valueMethod = 'get' . ucfirst($key);
        $value = $entity->$valueMethod();

        return $value;
    }
public function get ( $ entity ) { $ key = $ this -> mapping [ 'fieldname' ] ; $ valueMethod = 'get' . ucfirst ( $ key ) ; $ value = $ entity -> $ valueMethod ( ) ; return $ value ; }
Reads the current value of the field from an entity and returns value.

@param $entity

@return mixed
Reads the current value of the field from an entity and returns value .