protected function getFieldValue($value, $name)
    {
        if (!is_null($value)) {
            $modelVariable = $this->getSingularVariable($this->modelName);
            return sprintf("(!isset(\$%s->%s) ? '%s' : null)", $modelVariable, $name, $value);
        }
        return 'null';
    }
protected function getFieldValue($value, $name)
    {
        if (!is_null($value)) {
            $modelVariable = $this->getSingularVariable($this->modelName);
            return sprintf("(!isset(\$%s->%s) ? '%s' : null)", $modelVariable, $name, $value);
        }
        return 'null';
    }
protected function getFieldValue ( $ value , $ name ) { if ( ! is_null ( $ value ) ) { $ modelVariable = $ this -> getSingularVariable ( $ this -> modelName ) ; return sprintf ( "(!isset(\$%s->%s) ? '%s' : null)" , $ modelVariable , $ name , $ value ) ; } return 'null' ; }
Gets the fields value

@param string $stub
@param string $fieldValue
@param string $name

@return $this
Gets the fields value