public function getPropertyStringOrCallableGetString(Row $row, $property, $name)
	{
		/**
		 * String
		 */
		if (is_string($property)) {
			return $property;
		}

		/**
		 * Callable
		 */
		if (is_callable($property)) {
			$value = call_user_func($property, $row->getItem());

			if (!is_string($value)) {
				throw new DataGridException("Action {$name} callback has to return a string");
			}

			return $value;
		}

		return $property;
	}
public function getPropertyStringOrCallableGetString(Row $row, $property, $name)
	{
		/**
		 * String
		 */
		if (is_string($property)) {
			return $property;
		}

		/**
		 * Callable
		 */
		if (is_callable($property)) {
			$value = call_user_func($property, $row->getItem());

			if (!is_string($value)) {
				throw new DataGridException("Action {$name} callback has to return a string");
			}

			return $value;
		}

		return $property;
	}
public function getPropertyStringOrCallableGetString ( Row $ row , $ property , $ name ) { /**
		 * String
		 */ if ( is_string ( $ property ) ) { return $ property ; } /**
		 * Callable
		 */ if ( is_callable ( $ property ) ) { $ value = call_user_func ( $ property , $ row -> getItem ( ) ) ; if ( ! is_string ( $ value ) ) { throw new DataGridException ( "Action {$name} callback has to return a string" ) ; } return $ value ; } return $ property ; }
Check whether given property is string or callable
in that case call callback and check property and return it
@param  Row                  $row
@param  string|callable|null $property
@param  string               $name
@return string
@throws DataGridException
Check whether given property is string or callable in that case call callback and check property and return it